lib/rack/reducer/refinements.rb in rack-reducer-1.1.1 vs lib/rack/reducer/refinements.rb in rack-reducer-1.1.2
- old
+ new
@@ -29,10 +29,10 @@
end
refine Hash do
def symbolize_keys
each_with_object({}) do |(key, val), hash|
- hash[key.to_sym] = val.is_a?(Hash) ? symbolize(val) : val
+ hash[key.to_sym] = val.is_a?(Hash) ? val.symbolize_keys : val
end
end
alias_method :to_unsafe_h, :to_h
end