diff options
author | George Ogata <george.ogata@gmail.com> | 2009-02-21 23:46:40 +1100 |
---|---|---|
committer | George Ogata <george.ogata@gmail.com> | 2009-02-21 23:46:40 +1100 |
commit | 650a4fd9c6832fbc2554d003b879bb9b05d96569 (patch) | |
tree | 5e68e236b4943879fbc7061246acbed0a5d4a6e0 /activerecord/lib | |
parent | c2a0624526d8ef397446d426970d810b440ce84b (diff) | |
download | rails-650a4fd9c6832fbc2554d003b879bb9b05d96569.tar.gz rails-650a4fd9c6832fbc2554d003b879bb9b05d96569.tar.bz2 rails-650a4fd9c6832fbc2554d003b879bb9b05d96569.zip |
Document the return value of AR::Base#delete_all.
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 78c6ac2ba8..188168c89d 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -886,7 +886,8 @@ module ActiveRecord #:nodoc: # Deletes the records matching +conditions+ without instantiating the records first, and hence not # calling the +destroy+ method nor invoking callbacks. This is a single SQL DELETE statement that # goes straight to the database, much more efficient than +destroy_all+. Be careful with relations - # though, in particular <tt>:dependent</tt> rules defined on associations are not honored. + # though, in particular <tt>:dependent</tt> rules defined on associations are not honored. Returns + # the number of rows affected. # # ==== Parameters # |