Skip to content
Browse files

Fix unnecessary attributes hash duping caused by the serialized attri…

…butes dirty check, creating unnecessary garbage
  • Loading branch information...
1 parent 87bbf48 commit 6de56f72ef099068692207160d7957307b5694c0 @willbryant committed May 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/attribute_methods/dirty.rb
View
2 activerecord/lib/active_record/attribute_methods/dirty.rb
@@ -65,7 +65,7 @@ def update(*)
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

0 comments on commit 6de56f7

Please sign in to comment.
Something went wrong with that request. Please try again.