From 090bfcec60b89e7a4662733c705973642432583e Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 14 Nov 2005 07:41:17 +0000 Subject: Correct documentation for Base.delete_all. References #1568. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 2 ++ activerecord/lib/active_record/base.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 711d5a8f30..a184ad192c 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Correct documentation for Base.delete_all. #1568 [Newhydra] + * Oracle: test case for column default parsing. #2788 [Michael Schoen ] * Update documentation for Migrations. #2861 [Tom Werner ] diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index e9d885f313..06902a6927 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -513,7 +513,7 @@ module ActiveRecord #:nodoc: # Deletes all the records that match the +condition+ without instantiating the objects first (and hence not # calling the destroy method). Example: - # Post.destroy_all "person_id = 5 AND (category = 'Something' OR category = 'Else')" + # Post.delete_all "person_id = 5 AND (category = 'Something' OR category = 'Else')" def delete_all(conditions = nil) sql = "DELETE FROM #{table_name} " add_conditions!(sql, conditions) -- cgit v1.2.3