diff options
author | danielgrippi <danielgrippi@gmail.com> | 2011-11-09 01:48:38 +0400 |
---|---|---|
committer | Maxwell Salzberg <maxwell@joindiaspora.com> | 2011-12-09 04:32:18 +0400 |
commit | e6ed2d397a9c0e280083934dbf2d387e8a4a226c (patch) | |
tree | 1fdef34b9a90bc3703912677d4d479fdd179928a /app/models/profile.rb | |
parent | cd6f97fa0eadbf48d1f291c89686b6eebc540d64 (diff) |
added close account to user
Diffstat (limited to 'app/models/profile.rb')
-rw-r--r-- | app/models/profile.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/profile.rb b/app/models/profile.rb index fc41de397..cdbb1b2be 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -148,7 +148,7 @@ class Profile < ActiveRecord::Base def tombstone! self.taggings.delete_all - clearable_profile_fields.each do |field| + clearable_fields.each do |field| self[field] = nil end self.save @@ -174,7 +174,7 @@ class Profile < ActiveRecord::Base end private - def clearable_profile_fields + def clearable_fields self.attributes.keys - Profile.protected_attributes.to_a - ["created_at", "updated_at", "person_id"] end |