activerecord/lib/active_record/associations/collection_association.rb
# Deletes the +records+ and removes them from this association calling
# +before_remove+ , +after_remove+ , +before_destroy+ and +after_destroy+ callbacks.
#
# Note that this method removes records from the database ignoring the
# +:dependent+ option.


Note that this method removes records from the database ignoring the
+:dependent+ option.
Note that this method removes records from the database ignoring the + : dependent + option .
def destroy(*records)
        return if records.empty?
        records = find(records) if records.any? { |record| record.kind_of?(Fixnum) || record.kind_of?(String) }
        delete_or_destroy(records, :destroy)
      end
def destroy ( * records ) return if records . empty? records = find ( records ) if records . any? { | record | record . kind_of? ( Fixnum ) || record . kind_of? ( String ) } delete_or_destroy ( records , :destroy ) end
Deletes the +records+ and removes them from this association calling
+before_remove+ , +after_remove+ , +before_destroy+ and +after_destroy+ callbacks.
Deletes the + records + and removes them from this association calling + before_remove + + after_remove + + before_destroy + and + after_destroy + callbacks .
records
<not_specific>