Fix account deleter by not relying on protected_atrributes
This commit is contained in:
parent
2d57e15d5d
commit
645a427798
1 changed files with 1 additions and 1 deletions
|
|
@ -186,7 +186,7 @@ class Profile < ActiveRecord::Base
|
||||||
|
|
||||||
private
|
private
|
||||||
def clearable_fields
|
def clearable_fields
|
||||||
self.attributes.keys - Profile.protected_attributes.to_a - ["created_at", "updated_at", "person_id"]
|
self.attributes.keys - ["id", "created_at", "updated_at", "person_id"]
|
||||||
end
|
end
|
||||||
|
|
||||||
def absolutify_local_url url
|
def absolutify_local_url url
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue