Fix account deleter by not relying on protected_atrributes

This commit is contained in:
Jonne Haß 2013-09-21 15:02:03 +02:00
parent 2d57e15d5d
commit 645a427798

View file

@ -186,7 +186,7 @@ class Profile < ActiveRecord::Base
private
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
def absolutify_local_url url