Commit e7baba6e0c1c98c0e814b8373b1aaa44915c0140

Authored by Leandro Santos
1 parent 9e90cb78

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 67  
68 68 attr_writer :person_data
69 69 def person_data
70   - @person_data || {}
  70 + @person_data = {} if @person_data.nil?
  71 + @person_data
71 72 end
72 73  
73 74 def email_domain
... ...