aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-14 07:41:17 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-14 07:41:17 +0000
commit090bfcec60b89e7a4662733c705973642432583e (patch)
tree21476a3d5a5c6b593e9b9d2b425a892291ff330b
parentd28e9aef5f7ea4a0432c154f2a3f89f28edcc4ba (diff)
downloadrails-090bfcec60b89e7a4662733c705973642432583e.tar.gz
rails-090bfcec60b89e7a4662733c705973642432583e.tar.bz2
rails-090bfcec60b89e7a4662733c705973642432583e.zip
Correct documentation for Base.delete_all. References #1568.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r--activerecord/CHANGELOG2
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
2 files changed, 3 insertions, 1 deletions
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 <schoenm@earthlink.net>]
* Update documentation for Migrations. #2861 [Tom Werner <tom@cube6media.com>]
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)