diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-10 14:36:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-10 14:36:59 -0700 |
commit | ae3269b79b32ecbb141a37b4c8ccf6e330b1a631 (patch) | |
tree | 7330fbd139ca52dcf9b5b45c5a6c2538a253796a | |
parent | 628a23cdd230f7f830ecbba137ab2430f69e8db5 (diff) | |
download | rails-ae3269b79b32ecbb141a37b4c8ccf6e330b1a631.tar.gz rails-ae3269b79b32ecbb141a37b4c8ccf6e330b1a631.tar.bz2 rails-ae3269b79b32ecbb141a37b4c8ccf6e330b1a631.zip |
remove another call to `scope`
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 7 |
1 files 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: |