Permalink
Browse files

Document the return value of AR::Base#delete_all.

  • Loading branch information...
1 parent c2a0624 commit 650a4fd9c6832fbc2554d003b879bb9b05d96569 @oggy oggy committed Feb 21, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/lib/active_record/base.rb
@@ -886,7 +886,8 @@ def destroy_all(conditions = nil)
# 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
#

0 comments on commit 650a4fd

Please sign in to comment.