lib/deas/url.rb in deas-0.20.0 vs lib/deas/url.rb in deas-0.21.0

- old
+ new

@@ -24,10 +24,10 @@ splat_path = splat.inject(path){ |p, v| p.sub(/\*+/, v.to_s) } params.inject(splat_path){ |p, (k, v)| p.gsub(":#{k}", v.to_s) } end def apply_ordered_params(path, params) - params.inject(path){ |p, v| p.sub(/\*+|\:\w+/i, v.to_s) } + params.inject(path){ |p, v| p.sub(/\*+|\:\w+/i, v.to_s) }.gsub(/\/\/+/, '/') end end end