From de03c2977894787af7c837eabc50d0387bf4f261 Mon Sep 17 00:00:00 2001 From: Matthew Draper Date: Sat, 5 Jul 2014 00:15:04 +0930 Subject: After find-via-reload, the record is not new --- activerecord/lib/active_record/persistence.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index ee634d7bb3..96e44c2f59 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -396,6 +396,7 @@ module ActiveRecord end @attributes = fresh_object.instance_variable_get('@attributes') + @new_record = false self end -- cgit v1.2.3