method
delete_count
rails latest stable - Class:
ActiveRecord::Associations::HasManyAssociation
delete_count(method, scope)private
No documentation available.
# File activerecord/lib/active_record/associations/has_many_association.rb, line 112
def delete_count(method, scope)
if method == :delete_all
scope.delete_all
else
scope.update_all(nullified_owner_attributes)
end
end