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