Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 3021

Show
Ignore:
Timestamp:
11/14/05 07:41:17 (3 years ago)
Author:
bitsweat
Message:

Correct documentation for Base.delete_all. References #1568.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/CHANGELOG

    r3019 r3021  
    11*SVN* 
     2 
     3* Correct documentation for Base.delete_all.  #1568 [Newhydra] 
    24 
    35* Oracle: test case for column default parsing.  #2788 [Michael Schoen <schoenm@earthlink.net>] 
  • trunk/activerecord/lib/active_record/base.rb

    r2985 r3021  
    514514      # Deletes all the records that match the +condition+ without instantiating the objects first (and hence not 
    515515      # calling the destroy method). Example: 
    516       #   Post.destroy_all "person_id = 5 AND (category = 'Something' OR category = 'Else')" 
     516      #   Post.delete_all "person_id = 5 AND (category = 'Something' OR category = 'Else')" 
    517517      def delete_all(conditions = nil) 
    518518        sql = "DELETE FROM #{table_name} "