Class: Profile
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Profile
- Extended by:
- FriendlyId
- Defined in:
- app/models/profile.rb
Instance Method Summary collapse
-
#first_name ⇒ Object
> First Name.
-
#name ⇒ Object
> Name.
Instance Method Details
#first_name ⇒ Object
> First Name
40 41 42 |
# File 'app/models/profile.rb', line 40 def first_name name.split.first end |
#name ⇒ Object
> Name
35 36 37 |
# File 'app/models/profile.rb', line 35 def name self[:name] || user.email end |