method

delete_count

Importance_0
v4.2.7 - 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 155
        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.