提交 ae3269b7 编写于 作者: A Aaron Patterson

remove another call to `scope`

上级 628a23cd
......@@ -822,9 +822,10 @@ def scope(*args)
# controller "food" do
# match "bacon", action: :bacon, via: :get
# end
def controller(controller, options={})
options[:controller] = controller
scope(options) { yield }
def controller(controller)
controller_scope(controller) do
yield
end
end
# Scopes routes to a specific namespace. For example:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册