method

remove_records

remove_records(existing_records, records, method)
private

No documentation available.

# File activerecord/lib/active_record/associations/collection_association.rb, line 533
        def remove_records(existing_records, records, method)
          records.each { |record| callback(:before_remove, record) }

          delete_records(existing_records, method) if existing_records.any?
          records.each { |record| target.delete(record) }

          records.each { |record| callback(:after_remove, record) }
        end