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::OrderedHash

  • Loading branch information...
commit 25c76ec8e2e17cc3eb42a824c38f78fb9e23e70a 1 parent ae7dcb4
@rafaelfranca rafaelfranca authored
Showing with 0 additions and 15 deletions.
  1. +0 −15 activesupport/lib/active_support/ordered_hash.rb
View
15 activesupport/lib/active_support/ordered_hash.rb
@@ -1,4 +1,3 @@
-require 'psych'
require 'yaml'
YAML.add_builtin_type("omap") do |type, val|
@@ -25,20 +24,6 @@ def encode_with(coder)
coder.represent_seq '!omap', map { |k,v| { k => v } }
end
- def to_yaml(opts = {})
- if !YAML::ENGINE.syck?
- return super
- end
-
- YAML.quick_emit(self, opts) do |out|
- out.seq(taguri) do |seq|
- each do |k, v|
- seq.add(k => v)
- end
- end
- end
- end
-
def nested_under_indifferent_access
self
end
Please sign in to comment.
Something went wrong with that request. Please try again.