Skip to content

Commit

Permalink
update CollectionProxy#clear documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Rodriguez committed May 22, 2012
1 parent 1bcd5e4 commit 8281194
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -577,9 +577,8 @@ def <<(*records)
end end
alias_method :push, :<< alias_method :push, :<<


# Removes every object from the collection. This does not destroy # Equivalent to +delete_all+. The difference is that returns +self+, instead
# the objects, it sets their foreign keys to +NULL+. Returns +self+ # of an array with the deleted objects, so methods can be chained.
# so methods can be chained.
# #
# class Person < ActiveRecord::Base # class Person < ActiveRecord::Base
# has_many :pets # has_many :pets
Expand Down

0 comments on commit 8281194

Please sign in to comment.