Only use path if the key is not present

There are some cases where :path is nil on option and we should respect
that.
上级 8adf25a6
......@@ -881,7 +881,7 @@ def namespace(path, options = {})
shallow_prefix: options.fetch(:as, path)
}
path_scope(options.delete(:path) || path) do
path_scope(options.delete(:path) { path }) do
scope(defaults.merge!(options)) { yield }
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册