lib/alipay/utils.rb in alipay-0.0.1 vs lib/alipay/utils.rb in alipay-0.0.2
- old
+ new
@@ -1,10 +1,10 @@
module Alipay
module Utils
- def self.symbolize_keys(hash)
+ def self.stringify_keys(hash)
new_hash = {}
hash.each do |key, value|
- new_hash[(key.to_sym rescue key) || key] = value
+ new_hash[(key.to_s rescue key) || key] = value
end
new_hash
end
end
end