instance method
reload
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
reload(*)
reload the record and clears changed attributes.
Parameters
-
argsrest
Source
# File activerecord/lib/active_record/attribute_methods/dirty.rb, line 63
def reload(*)
super.tap do
@mutations_before_last_save = nil
@mutations_from_database = nil
end
end
Defined in activerecord/lib/active_record/attribute_methods/dirty.rb line 63
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AttributeMethods::Dirty