diff options
author | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-21 23:51:31 -0500 |
---|---|---|
committer | Francesco Rodriguez <lrodriguezsanc@gmail.com> | 2012-05-21 23:51:31 -0500 |
commit | 8281194fee1a049826c50f9e0a095ea1abb91277 (patch) | |
tree | 6562d4bc4917672e41123c3763588d337fd8e6ad /activerecord/lib/active_record/associations | |
parent | 1bcd5e42ed6c2efed4d1a53e74b4f8d6631b119d (diff) | |
download | rails-8281194fee1a049826c50f9e0a095ea1abb91277.tar.gz rails-8281194fee1a049826c50f9e0a095ea1abb91277.tar.bz2 rails-8281194fee1a049826c50f9e0a095ea1abb91277.zip |
update CollectionProxy#clear documentation
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index f0c4688ee3..468bf5c2f8 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -577,9 +577,8 @@ module ActiveRecord 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 |