From 650a4fd9c6832fbc2554d003b879bb9b05d96569 Mon Sep 17 00:00:00 2001 From: George Ogata Date: Sat, 21 Feb 2009 23:46:40 +1100 Subject: Document the return value of AR::Base#delete_all. --- activerecord/lib/active_record/base.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activerecord/lib') 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 :dependent rules defined on associations are not honored. + # though, in particular :dependent rules defined on associations are not honored. Returns + # the number of rows affected. # # ==== Parameters # -- cgit v1.2.3