lib/merb-slices/router_ext.rb in merb-slices-0.9.13 vs lib/merb-slices/router_ext.rb in merb-slices-1.0

- old
+ new

@@ -63,9 +63,10 @@ # Insert a slice directly into the current router context. # # This will still setup a namespace, but doesn't set a path prefix. Only for special cases. def slice(slice_module, options = {}, &block) - add_slice(slice_module, options.merge(:path => '', :reset_controller_prefix => true), &block) + options[:path] ||= "" + add_slice(slice_module, options.merge(:reset_controller_prefix => true), &block) end end \ No newline at end of file