diff options
author | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-04-19 00:01:01 +0530 |
---|---|---|
committer | Kuldeep Aggarwal <kd.engineer@yahoo.co.in> | 2014-04-19 00:01:01 +0530 |
commit | 5fe4e62807adc61c42c2d94ec36802f25554224a (patch) | |
tree | 6b9501cd4fed638a55a4dd4ec87886dc8bfe8383 /activerecord/lib | |
parent | 98e8c96d42052dd74310aa95102c55f3762becce (diff) | |
download | rails-5fe4e62807adc61c42c2d94ec36802f25554224a.tar.gz rails-5fe4e62807adc61c42c2d94ec36802f25554224a.tar.bz2 rails-5fe4e62807adc61c42c2d94ec36802f25554224a.zip |
`@destroyed` should always be set to `false` when an object is duped.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/core.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb index 4e53f66005..d6df98a80f 100644 --- a/activerecord/lib/active_record/core.rb +++ b/activerecord/lib/active_record/core.rb @@ -267,6 +267,7 @@ module ActiveRecord @attributes_cache = {} @new_record = true + @destroyed = false super end |