Fix failing test - clear @new_record on synchronize.
This commit is contained in:
parent
58cac8bfb0
commit
31ff20a332
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue