aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date_time/conversions.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-09-27 08:49:18 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-09-27 08:49:18 +0000
commitcd1f2d7b0ed7a25ff1c298732f921ce6d6d86f73 (patch)
tree2a2d8b9e961e62d654e60dd93b86bf6d06eba199 /activesupport/lib/active_support/core_ext/date_time/conversions.rb
parent7faeb0db0731d7846d6cf75db633dd77d918e863 (diff)
downloadrails-cd1f2d7b0ed7a25ff1c298732f921ce6d6d86f73.tar.gz
rails-cd1f2d7b0ed7a25ff1c298732f921ce6d6d86f73.tar.bz2
rails-cd1f2d7b0ed7a25ff1c298732f921ce6d6d86f73.zip
Date/Time/DateTime Ruby 1.9 compat
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/date_time/conversions.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/date_time/conversions.rb4
1 files changed, 2 insertions, 2 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 91ed0e94e9..4739e3fb6d 100644
--- a/activesupport/lib/active_support/core_ext/date_time/conversions.rb
+++ b/activesupport/lib/active_support/core_ext/date_time/conversions.rb
@@ -17,13 +17,13 @@ module ActiveSupport #:nodoc:
if formatter.respond_to?(:call)
formatter.call(self).to_s
else
- strftime(formatter).strip
+ strftime(formatter)
end
else
to_datetime_default_s
end
end
-
+
# Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000"
def readable_inspect
to_s(:rfc822)