From 2fb45072334ed893b63324364839789ff13fdf48 Mon Sep 17 00:00:00 2001 From: Will Bryant Date: Sun, 10 Jan 2010 13:03:37 +1300 Subject: [PATCH] Fix unnecessary attributes hash duping caused by the serialized attributes dirty check --- activerecord/lib/active_record/dirty.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/activerecord/lib/active_record/dirty.rb b/activerecord/lib/active_record/dirty.rb index f189651..aee89fe 100644 --- a/activerecord/lib/active_record/dirty.rb +++ b/activerecord/lib/active_record/dirty.rb @@ -143,7 +143,7 @@ module ActiveRecord if partial_updates? # Serialized attributes should always be written in case they've been # changed in place. - update_without_dirty(changed | (attributes.keys & self.class.serialized_attributes.keys)) + update_without_dirty(changed | (@attributes.keys & self.class.serialized_attributes.keys)) else update_without_dirty end -- 1.6.4.1