method
delete_count
v4.2.1 -
Show 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 148
def delete_count(method, scope)
if method == :delete_all
scope.delete_all
else
scope.update_all(reflection.foreign_key => nil)
end
end