instance method
clear_timestamp_attributes
Ruby on Rails 6.0.6
Since v3.2.22.5 PrivateSignature
clear_timestamp_attributes()
Clear attributes and changed_attributes
Source
# File activerecord/lib/active_record/timestamp.rb, line 159
def clear_timestamp_attributes
all_timestamp_attributes_in_model.each do |attribute_name|
self[attribute_name] = nil
clear_attribute_changes([attribute_name])
end
end
Defined in activerecord/lib/active_record/timestamp.rb line 159
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Timestamp