lib/redbooth-ruby/request/helpers.rb in redbooth-ruby-0.0.5 vs lib/redbooth-ruby/request/helpers.rb in redbooth-ruby-0.1.0
- old
+ new
@@ -21,16 +21,16 @@
case value
when Hash
result[name.to_s] = normalize_params(value)
when Array
value.each_with_index do |item_value, index|
- result["#{name.to_s}[#{index}]"] = item_value.to_s
+ result["#{ name.to_s }[#{ index }]"] = item_value.to_s
end
else
result[name.to_s] = value.to_s
end
end
result
end
end
end
-end
+end
\ No newline at end of file