Flowdock
method

remove_records

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: CollectionAssociation
remove_records(existing_records, records, method) private

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/collection_association.rb, line 391
        def remove_records(existing_records, records, method)
          catch(:abort) do
            records.each { |record| callback(:before_remove, record) }
          end || return

          delete_records(existing_records, method) if existing_records.any?
          @target -= records
          @association_ids = nil

          records.each { |record| callback(:after_remove, record) }
        end
Register or log in to add new notes.