Class: Profile

Inherits:
ApplicationRecord show all
Extended by:
FriendlyId
Defined in:
app/models/profile.rb

Instance Method Summary collapse

Instance Method Details

#first_nameObject

> First Name



40
41
42
# File 'app/models/profile.rb', line 40

def first_name
  name.split.first
end

#nameObject

> Name



35
36
37
# File 'app/models/profile.rb', line 35

def name
  self[:name] || user.email
end