Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

No need to override to_yaml method in ActiveSupport::TimeWithZone

  • Loading branch information...
commit b65bdb1527dbf42d94e5722f6764cebac73d103c 1 parent 25c76ec
@rafaelfranca rafaelfranca authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 activesupport/lib/active_support/time_with_zone.rb
View
8 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 @@ def encode_with(coder)
end
end
- def to_yaml(options = {})
- return super if !YAML::ENGINE.syck?
-
- utc.to_yaml(options)
- end
-
def httpdate
utc.httpdate
end
Please sign in to comment.
Something went wrong with that request. Please try again.