Permalink
Browse files

update CollectionProxy#clear documentation

  • Loading branch information...
1 parent 1bcd5e4 commit 8281194fee1a049826c50f9e0a095ea1abb91277 Francesco Rodriguez committed May 22, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 activerecord/lib/active_record/associations/collection_proxy.rb
View
5 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -577,9 +577,8 @@ def <<(*records)
end
alias_method :push, :<<
- # Removes every object from the collection. This does not destroy
- # the objects, it sets their foreign keys to +NULL+. Returns +self+
- # so methods can be chained.
+ # Equivalent to +delete_all+. The difference is that returns +self+, instead
+ # of an array with the deleted objects, so methods can be chained.
#
# class Person < ActiveRecord::Base
# has_many :pets

0 comments on commit 8281194

Please sign in to comment.