From 645a4277989430e969e80d71b05e4f039ae0b898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Sat, 21 Sep 2013 15:02:03 +0200 Subject: [PATCH] Fix account deleter by not relying on protected_atrributes --- app/models/profile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index e3e543f29..64b059bb9 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -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