From b65bdb1527dbf42d94e5722f6764cebac73d103c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 4 Jan 2012 14:16:48 -0300 Subject: No need to override to_yaml method in ActiveSupport::TimeWithZone --- activesupport/lib/active_support/time_with_zone.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/time_with_zone.rb b/activesupport/lib/active_support/time_with_zone.rb index 50fe58a006..1cb71012ef 100644 --- a/activesupport/lib/active_support/time_with_zone.rb +++ b/activesupport/lib/active_support/time_with_zone.rb @@ -1,4 +1,4 @@ -require "active_support/values/time_zone" +require 'active_support/values/time_zone' require 'active_support/core_ext/object/acts_like' require 'active_support/core_ext/object/inclusion' @@ -146,12 +146,6 @@ module ActiveSupport end end - def to_yaml(options = {}) - return super if !YAML::ENGINE.syck? - - utc.to_yaml(options) - end - def httpdate utc.httpdate end -- cgit v1.2.3