public

Implementation with StringInquirer

  • Download Gist
ImplementationWithStringInquirer.rb
Ruby
1 2 3 4 5 6 7 8 9
class User < ActiveRecord::Base
has_one user_profile, :dependent => :destroy
 
delegate :admin?, :artist?, :collector?, :estate?, :exhibition_curator?, :to => :user_profile_type
 
def user_profile_type
user.user_profile.type.downcase.inquiry
end
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.