class ActiveRecord::Associations::CollectionAssociation

def destroy_all

See destroy for more info.

Destroy all the records from this association.
def destroy_all
  destroy(load_target).tap do
    reset
    loaded!
  end
end