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:
parent
23aa0a2bb5
commit
41f6347c5b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue