Skip to content

Commit

Permalink
Always alias DateTime#to_s to #to_default_s
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Mar 31, 2008
1 parent ade1e3d commit 181378d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module DateTime #:nodoc:
module Conversions
def self.included(base) #:nodoc:
base.class_eval do
alias_method :to_default_s, :to_s if instance_methods.include?(:to_s)
alias_method :to_default_s, :to_s
alias_method :to_s, :to_formatted_s
alias_method :default_inspect, :inspect
alias_method :inspect, :readable_inspect
Expand Down

0 comments on commit 181378d

Please sign in to comment.