1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use timestamp_attributes_for_update_in_model rather than timestamp_attributes_for_update

This commit is contained in:
Ryuta Kamizono 2017-05-14 08:37:37 +09:00
parent 23aa0a2bb5
commit 41f6347c5b

View file

@ -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