lib/merb/merb_router.rb in merb-0.3.3 vs lib/merb/merb_router.rb in merb-0.3.4

- old
+ new

@@ -197,10 +197,10 @@ name = name.intern unless Symbol === name @paths[name] = path end def generate(name, options = {}) - path = @paths[name] + path = @paths[name].dup while path =~ Router::SECTION_REGEXP path.sub!(Router::SECTION_REGEXP, options[$~[1].intern].to_s) end if f = options[:format] "#{path}.#{f}"