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

Changeset 3022

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

r3073@asus: jeremy | 2005-11-13 23:42:32 -0800
Apply [3021] to stable. Correct documentation for Base.delete_all. Closes #1568.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/stable/activerecord/CHANGELOG

    r3020 r3022  
    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>] 
  • branches/stable/activerecord/lib/active_record/base.rb

    r2991 r3022  
    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} "