This method is deprecated or moved on the latest stable version.
The last existing version (v3.0.9) is shown here.
destroy(*records)
public
Destroy records and remove them from this association calling
before_remove and after_remove callbacks.
Note that this method will always remove records from the database
ignoring the :dependent option.
# File activerecord/lib/active_record/associations/association_collection.rb, line 234
def destroy(*records)
records = find(records) if records.any? {|record| record.kind_of?(Fixnum) || record.kind_of?(String)}
remove_records(records) do |_records, old_records|
old_records.each { |record| record.destroy }
end
load_target
end