forked from saurabh/orbit4-5
16 lines
319 B
Ruby
16 lines
319 B
Ruby
class MemberProfile
|
|
include Mongoid::Document
|
|
field :first_name, type: String, localize: true
|
|
field :last_name, type: String, localize: true
|
|
field :gender
|
|
|
|
has_one :user
|
|
has_and_belongs_to_many :roles
|
|
|
|
mount_uploader :avatar, AvatarUploader
|
|
|
|
def name
|
|
"#{self.first_name} #{self.last_name}"
|
|
end
|
|
end
|