aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-03-31 01:09:29 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-03-31 01:09:29 +0000
commit181378d1e9b7874148a63d55bd7d01f39c36eac4 (patch)
tree0ca5a1cc24aeb81d01d3d5a34352a33e2a7348bc /activesupport
parentade1e3defd58ab558a7f01c9801fe89a1ea050cf (diff)
downloadrails-181378d1e9b7874148a63d55bd7d01f39c36eac4.tar.gz
rails-181378d1e9b7874148a63d55bd7d01f39c36eac4.tar.bz2
rails-181378d1e9b7874148a63d55bd7d01f39c36eac4.zip
Always alias DateTime#to_s to #to_default_s
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/date_time/conversions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/date_time/conversions.rb b/activesupport/lib/active_support/core_ext/date_time/conversions.rb
index c86a527045..7f13873e7f 100644
--- a/activesupport/lib/active_support/core_ext/date_time/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/date_time/conversions.rb
@@ -5,7 +5,7 @@ module ActiveSupport #: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