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

Changeset 2506

Show
Ignore:
Timestamp:
10/09/05 17:52:42 (3 years ago)
Author:
david
Message:

Added to_s(:db) to Range

Files:

Legend:

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

    r2490 r2506  
    11*SVN* 
     2 
     3* Added to_s(:db) to Range, so you can get "BETWEEN '2005-12-10' AND '2005-12-12'" from Date.new(2005, 12, 10)..Date.new(2005, 12, 12) (and likewise with Times) 
    24 
    35* Moved require_library_or_gem into Kernel. #1992 [Michael Schuerig <michael@schuerig.de>] 
  • trunk/activesupport/lib/active_support/core_ext/date/conversions.rb

    r1344 r2506  
    99        } 
    1010         
    11         def self.append_features(klass) #:nodoc: 
    12           super 
     11        def self.included(klass) #:nodoc: 
    1312          klass.send(:alias_method, :to_default_s, :to_s) 
    1413          klass.send(:alias_method, :to_s, :to_formatted_s)