Insecure: can't modify hash


#1

A weird problem occurs (only on the prod server, not locally), when i
try to register a new user with restful_authentication.

Once in a while, i get the following error when trying to sign up as a
new user:

Insecure: can’t modify hash

usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:309:in
delete' /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:309:inwrite_attribute_without_dirty’
/usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/dirty.rb:139:in
write_attribute' /usr/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/attribute_methods.rb:211:indeleted_at=’
app/models/user.rb:113:in make_activation_code' app/controllers/users_controller.rb:30:increate’
/usr/bin/mongrel_rails:16:in `load’
/usr/bin/mongrel_rails:16

Im really clueless on what’s causing it. Even more strange is that it
doesn’t right after a fresh deploy, and it doesn’t happen locally. My
first reaction was to run rake db:sessions:clear in case there was some
unwanted persistence in the sessions, but it doesn’t seem to come from
that…

If any knows about that error and could help… thanks :!