diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-14 08:37:37 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-05-14 08:37:37 +0900 |
commit | 41f6347c5b4923b71360ea19f860ef77f5c91d77 (patch) | |
tree | 9585ddfb81ca26aa6d9fef5ff969313e4ff2d893 /activerecord | |
parent | 23aa0a2bb551717f153ac75f24c017c43ab853f2 (diff) | |
download | rails-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.rb | 2 |
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 |