diff options
author | Matthew Draper <matthew@trebex.net> | 2014-07-05 00:15:04 +0930 |
---|---|---|
committer | Matthew Draper <matthew@trebex.net> | 2014-07-05 00:21:24 +0930 |
commit | de03c2977894787af7c837eabc50d0387bf4f261 (patch) | |
tree | 977ef7b190f3e9e9cfaac4bcb518e0651fe7e474 /activerecord/lib | |
parent | a8e1538b6032be16c499a7049c2eaa1eeb2265ac (diff) | |
download | rails-de03c2977894787af7c837eabc50d0387bf4f261.tar.gz rails-de03c2977894787af7c837eabc50d0387bf4f261.tar.bz2 rails-de03c2977894787af7c837eabc50d0387bf4f261.zip |
After find-via-reload, the record is not new
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/persistence.rb | 1 |
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 |