diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-14 07:41:17 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-14 07:41:17 +0000 |
commit | 090bfcec60b89e7a4662733c705973642432583e (patch) | |
tree | 21476a3d5a5c6b593e9b9d2b425a892291ff330b /activerecord/lib/active_record/base.rb | |
parent | d28e9aef5f7ea4a0432c154f2a3f89f28edcc4ba (diff) | |
download | rails-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
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |