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