Permalink
Browse files

Correct documentation for Base.delete_all. References #1568.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent d28e9ae commit 090bfcec60b89e7a4662733c705973642432583e @jeremy jeremy committed Nov 14, 2005
Showing with 3 additions and 1 deletion.
  1. +2 −0 activerecord/CHANGELOG
  2. +1 −1 activerecord/lib/active_record/base.rb
@@ -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>]
@@ -513,7 +513,7 @@ def destroy_all(conditions = nil)
# 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)

0 comments on commit 090bfce

Please sign in to comment.