aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-05-14 08:37:37 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-05-14 08:37:37 +0900
commit41f6347c5b4923b71360ea19f860ef77f5c91d77 (patch)
tree9585ddfb81ca26aa6d9fef5ff969313e4ff2d893 /activerecord
parent23aa0a2bb551717f153ac75f24c017c43ab853f2 (diff)
downloadrails-41f6347c5b4923b71360ea19f860ef77f5c91d77.tar.gz
rails-41f6347c5b4923b71360ea19f860ef77f5c91d77.tar.bz2
rails-41f6347c5b4923b71360ea19f860ef77f5c91d77.zip
Use `timestamp_attributes_for_update_in_model` rather than `timestamp_attributes_for_update`
Diffstat (limited to 'activerecord')
-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 09d8d1cdd4..a304b63d22 100644
--- a/activerecord/lib/active_record/timestamp.rb
+++ b/activerecord/lib/active_record/timestamp.rb
@@ -127,7 +127,7 @@ module ActiveRecord
self.class.send(:current_time_from_proper_timezone)
end
- def max_updated_column_timestamp(timestamp_names = self.class.send(:timestamp_attributes_for_update))
+ def max_updated_column_timestamp(timestamp_names = timestamp_attributes_for_update_in_model)
timestamp_names
.map { |attr| self[attr] }
.compact