keep the pivate key, required for retries

This commit is contained in:
Ilya Zhitomirskiy 2011-11-10 17:07:14 -08:00 committed by Maxwell Salzberg
parent f800d50a2b
commit 1552b5bcc2
2 changed files with 1 additions and 2 deletions

View file

@ -508,6 +508,6 @@ class User < ActiveRecord::Base
private
def clearable_fields
self.attributes.keys - ["id", "username", "encrypted_password", "created_at", "updated_at", "locked_at"]
self.attributes.keys - ["id", "username", "encrypted_password", "created_at", "updated_at", "locked_at", "serialized_private_key"]
end
end

View file

@ -1051,7 +1051,6 @@ describe User do
it 'returns the clearable fields' do
user = Factory.create :user
user.send(:clearable_fields).sort.should == %w{
serialized_private_key
getting_started
disable_mail
language