From 6c49393ca2cc37f776b185ce8e470370627b47de Mon Sep 17 00:00:00 2001 From: Will Bryant Date: Wed, 26 May 2010 15:36:59 +1200 Subject: [PATCH] Fix unnecessary attributes hash duping caused by the serialized attributes dirty check --- .../lib/active_record/attribute_methods/dirty.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activerecord/lib/active_record/attribute_methods/dirty.rb b/activerecord/lib/active_record/attribute_methods/dirty.rb index cf4594a..8b0c403 100644 --- a/activerecord/lib/active_record/attribute_methods/dirty.rb +++ b/activerecord/lib/active_record/attribute_methods/dirty.rb @@ -65,7 +65,7 @@ module ActiveRecord if partial_updates? # Serialized attributes should always be written in case they've been # changed in place. - super(changed | (attributes.keys & self.class.serialized_attributes.keys)) + super(changed | (@attributes.keys & self.class.serialized_attributes.keys)) else super end -- 1.7.0