method

delete_count

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActiveRecord::Associations::HasManyAssociation
delete_count(method, scope) 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/has_many_association.rb, line 104
        def delete_count(method, scope)
          if method == :delete_all
            scope.delete_all
          else
            scope.update_all(nullified_owner_attributes)
          end
        end
Register or log in to add new notes.