Method: ActiveRecord::AutosaveAssociation#reload

Defined in:
activerecord/lib/active_record/autosave_association.rb

#reload(options = nil) ⇒ Object

Reloads the attributes of the object as usual and clears marked_for_destruction flag.



236
237
238
239
240
# File 'activerecord/lib/active_record/autosave_association.rb', line 236

def reload(options = nil)
  @marked_for_destruction = false
  @destroyed_by_association = nil
  super
end