aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/timestamp.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2014-08-17 12:53:15 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2014-08-17 12:53:15 -0700
commit8f15565de879bd40c8390884d1d31e52de240323 (patch)
treec6c30c4a07a5d11f46d50853613b909ee0e8c6ae /activerecord/lib/active_record/timestamp.rb
parent9f6e82ee4783e491c20f5244a613fdeb4024beb5 (diff)
parente158ee50e64e2ae2460cd26be53039922f588300 (diff)
downloadrails-8f15565de879bd40c8390884d1d31e52de240323.tar.gz
rails-8f15565de879bd40c8390884d1d31e52de240323.tar.bz2
rails-8f15565de879bd40c8390884d1d31e52de240323.zip
Merge branch 'master' of github.com:rails/rails
Diffstat (limited to 'activerecord/lib/active_record/timestamp.rb')
-rw-r--r--activerecord/lib/active_record/timestamp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/timestamp.rb b/activerecord/lib/active_record/timestamp.rb
index 417cd61f0c..936a18d99a 100644
--- a/activerecord/lib/active_record/timestamp.rb
+++ b/activerecord/lib/active_record/timestamp.rb
@@ -114,7 +114,7 @@ module ActiveRecord
def clear_timestamp_attributes
all_timestamp_attributes_in_model.each do |attribute_name|
self[attribute_name] = nil
- changed_attributes.delete(attribute_name)
+ clear_attribute_changes([attribute_name])
end
end
end