From ae3269b79b32ecbb141a37b4c8ccf6e330b1a631 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 10 Aug 2015 14:36:59 -0700 Subject: remove another call to `scope` --- actionpack/lib/action_dispatch/routing/mapper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index da0970d110..46d6f34c04 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -822,9 +822,10 @@ module ActionDispatch # 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: -- cgit v1.2.3