aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-07-05 01:17:54 +0930
committerMatthew Draper <matthew@trebex.net>2014-07-05 01:17:54 +0930
commit9cf994426326cb565ee5d0038dd13f29abf2f486 (patch)
tree622fb2725e5d02515f75f0ecb883a650f624a032 /activerecord/lib/active_record
parent871af9122b947043d38887e293cd1124468e4eeb (diff)
parentde03c2977894787af7c837eabc50d0387bf4f261 (diff)
downloadrails-9cf994426326cb565ee5d0038dd13f29abf2f486.tar.gz
rails-9cf994426326cb565ee5d0038dd13f29abf2f486.tar.bz2
rails-9cf994426326cb565ee5d0038dd13f29abf2f486.zip
Merge pull request #16049 from matthewd/find-via-reload
After find-via-reload, the record is not new
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/persistence.rb1
1 files changed, 1 insertions, 0 deletions
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