lib/sucker/parameters.rb in sucker-1.3.0.pre vs lib/sucker/parameters.rb in sucker-1.3.0.pre.1

- old
+ new

@@ -13,13 +13,13 @@ self.store 'Version', API_VERSION self.store 'Timestamp', timestamp end def normalize - inject({}) do |hash, key_value| - key, value = key_value - value = value.is_a?(Array) ? value.join(',') : value.to_s - hash[key.to_s.camelize] = value + inject({}) do |hash, kv| + k, v = kv + v = v.is_a?(Array) ? v.join(',') : v.to_s + hash[k.to_s.camelize] = v hash end end private