Fix failing test - clear @new_record on synchronize.

This commit is contained in:
Doug Orleans 2012-09-03 02:24:00 -04:00 committed by Zach Dennis
parent 58cac8bfb0
commit 31ff20a332

View file

@ -43,6 +43,7 @@ module ActiveRecord # :nodoc:
instance.clear_aggregation_cache
instance.clear_association_cache
instance.instance_variable_set '@attributes', matched_instance.attributes
instance.instance_variable_set '@new_record', false
end
end
end
@ -52,4 +53,4 @@ module ActiveRecord # :nodoc:
self.class.synchronize(instances, key)
end
end
end
end