Flowdock
method

delete_count

Importance_0
v5.0.0.1 - 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(reflection.foreign_key => nil)
          end
        end
Register or log in to add new notes.