method
touch_attributes_with_time
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Timestamp::ClassMethods
touch_attributes_with_time(*names, time: nil)public
No documentation available.
# File activerecord/lib/active_record/timestamp.rb, line 56
def touch_attributes_with_time(*names, time: nil)
attribute_names = timestamp_attributes_for_update_in_model
attribute_names |= names.map(&:to_s)
attribute_names.index_with(time || current_time_from_proper_timezone)
end