method

destroy_all

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::AssociationCollection
destroy_all() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/association_collection.rb, line 223
      def destroy_all
        transaction do
          each { |record| record.destroy }
        end

        reset_target!
      end
Register or log in to add new notes.