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

Changeset 8705

Show
Ignore:
Timestamp:
01/23/08 16:10:28 (9 months ago)
Author:
gbuesing
Message:

Remove unneeded #to_datetime_default_s alias for DateTime#to_s, given that we inherit a #to_default_s from Date that does exactly the same thing

Files:

Legend:

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

    r8699 r8705  
    11*SVN* 
     2 
     3* Remove unneeded #to_datetime_default_s alias for DateTime#to_s, given that we inherit a #to_default_s from Date that does exactly the same thing [Geoff Buesing] 
    24 
    35* Refactor Time and DateTime #to_formatted_s: use ternary instead of nested if/else [Geoff Buesing] 
  • trunk/activesupport/lib/active_support/core_ext/date_time/conversions.rb

    r8699 r8705  
    66        def self.included(base) #:nodoc: 
    77          base.class_eval do 
    8             alias_method :to_datetime_default_s, :to_s 
    98            alias_method :to_s, :to_formatted_s 
    109            alias_method :default_inspect, :inspect