Commit e7baba6e0c1c98c0e814b8373b1aaa44915c0140
1 parent
9e90cb78
Exists in
master
and in
29 other branches
refactoring person_data method to set person_data variable
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/models/user.rb
@@ -67,7 +67,8 @@ class User < ActiveRecord::Base | @@ -67,7 +67,8 @@ class User < ActiveRecord::Base | ||
67 | 67 | ||
68 | attr_writer :person_data | 68 | attr_writer :person_data |
69 | def person_data | 69 | def person_data |
70 | - @person_data || {} | 70 | + @person_data = {} if @person_data.nil? |
71 | + @person_data | ||
71 | end | 72 | end |
72 | 73 | ||
73 | def email_domain | 74 | def email_domain |