diff options
author | Robin Dupret <robin.dupret@gmail.com> | 2015-03-06 17:35:23 +0100 |
---|---|---|
committer | Robin Dupret <robin.dupret@gmail.com> | 2015-03-06 17:35:23 +0100 |
commit | e81693a0ebce0d1f6f259230847bca0109192c71 (patch) | |
tree | ba7252bae2a9c6a97a170ca526ee0e91cd2e7bb9 /activerecord | |
parent | c96cb66351267607d8a343575ab6dded0c41dfb5 (diff) | |
parent | 88199f7f03c6a5b1467b85edf10b59c6e92b59ab (diff) | |
download | rails-e81693a0ebce0d1f6f259230847bca0109192c71.tar.gz rails-e81693a0ebce0d1f6f259230847bca0109192c71.tar.bz2 rails-e81693a0ebce0d1f6f259230847bca0109192c71.zip |
Merge pull request #19230 from prathamesh-sonpatki/fix-clear-doc
Updated documentation of CollectionProxy#clear [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index e11c9490b7..685c3a5f17 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -976,6 +976,9 @@ module ActiveRecord # Equivalent to +delete_all+. The difference is that returns +self+, instead # of an array with the deleted objects, so methods can be chained. See # +delete_all+ for more information. + # Note that because +delete_all+ removes records by directly + # running an SQL query into the database, the +updated_at+ column of + # the object is not changed. def clear delete_all self |