method
destroy_all
v2.1.0 -
Show latest stable
- Class:
ActiveRecord::Associations::AssociationCollection
destroy_all()public
No documentation available.
# File activerecord/lib/active_record/associations/association_collection.rb, line 157
def destroy_all
@owner.transaction do
each { |record| record.destroy }
end
reset_target!
end