lib/fawry/connection.rb in fawry-1.3.1 vs lib/fawry/connection.rb in fawry-1.4.0
- old
+ new
@@ -67,10 +67,10 @@
hash.each_with_object([]) { |(k, v), arr| arr << "#{k}=#{v}" }.join('&')
end
def self.decode(string)
arr = string.split('&')
- arr.map { |str| str.split('=') }.to_h
+ arr.to_h { |str| str.split('=') }
end
end
end
end
end