instance method
reload
Ruby on Rails 7.2.3
Since v3.0.20Signature
reload(options = nil)
Reloads the attributes of the object as usual and clears marked_for_destruction flag.
Parameters
-
optionsopt = nil
Source
# File activerecord/lib/active_record/autosave_association.rb, line 236
def reload(options = nil)
@marked_for_destruction = false
@destroyed_by_association = nil
super
end
Defined in activerecord/lib/active_record/autosave_association.rb line 236
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::AutosaveAssociation