Skip to content
Browse files

Fine, warn. Just don't recurse to death in cc.rb

git-svn-id: 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent c52771e commit 047db112991785d871e9a6ba165b93752b0fff06 @jeremy jeremy committed Mar 31, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/date_time/conversions.rb
2 activesupport/lib/active_support/core_ext/date_time/conversions.rb
@@ -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
+ alias_method :to_default_s, :to_s if instance_methods.include?(:to_s)
alias_method :to_s, :to_formatted_s
alias_method :default_inspect, :inspect
alias_method :inspect, :readable_inspect

0 comments on commit 047db11

Please sign in to comment.
Something went wrong with that request. Please try again.