diff options
author | flaburgan <flaburgan@geexxx.fr> | 2017-07-19 11:49:47 +0300 |
---|---|---|
committer | flaburgan <flaburgan@geexxx.fr> | 2017-08-07 20:08:17 +0300 |
commit | 9a2798331361954c259657a96d300fbe59ad5590 (patch) | |
tree | 858a615d80445ba0c94775b6596342b230138fdb /app/models/person.rb | |
parent | c2e0feb38b191615f02b7750de9fb022b4b242f2 (diff) |
Refactor name condition to a cleaner code, delegate :full_name from profile to person to user
Diffstat (limited to 'app/models/person.rb')
-rw-r--r-- | app/models/person.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/person.rb b/app/models/person.rb index 13be8ec8b..d76cfcb92 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -22,7 +22,7 @@ class Person < ActiveRecord::Base end has_one :profile, dependent: :destroy - delegate :last_name, :image_url, :tag_string, :bio, :location, + delegate :last_name, :full_name, :image_url, :tag_string, :bio, :location, :gender, :birthday, :formatted_birthday, :tags, :searchable, :public_details?, to: :profile accepts_nested_attributes_for :profile |