aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorGeorge Ogata <george.ogata@gmail.com>2009-02-21 23:46:40 +1100
committerGeorge Ogata <george.ogata@gmail.com>2009-02-21 23:46:40 +1100
commit650a4fd9c6832fbc2554d003b879bb9b05d96569 (patch)
tree5e68e236b4943879fbc7061246acbed0a5d4a6e0 /activerecord/lib
parentc2a0624526d8ef397446d426970d810b440ce84b (diff)
downloadrails-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-xactiverecord/lib/active_record/base.rb3
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
#