diff options
author | Gabe da Silveira <gabe@websaviour.com> | 2009-08-09 02:27:53 -0700 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-08-09 18:02:35 +0100 |
commit | 1185500ff0465aff8686315f1b785884f133adcf (patch) | |
tree | 6b86ec6cd812a6dcd94d6a1acd04aa639f7ae6ab /actionpack/lib/action_controller/routing/route_set.rb | |
parent | a1c289dbe44f32d30d3addcb6b9c912d153f93b0 (diff) | |
download | rails-1185500ff0465aff8686315f1b785884f133adcf.tar.gz rails-1185500ff0465aff8686315f1b785884f133adcf.tar.bz2 rails-1185500ff0465aff8686315f1b785884f133adcf.zip |
Remove unused routeset method routes_for_controller_and_action in favour for routes_for [#3023 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'actionpack/lib/action_controller/routing/route_set.rb')
-rw-r--r-- | actionpack/lib/action_controller/routing/route_set.rb | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/routing/route_set.rb b/actionpack/lib/action_controller/routing/route_set.rb index 040a7e2cb6..0c499f3b46 100644 --- a/actionpack/lib/action_controller/routing/route_set.rb +++ b/actionpack/lib/action_controller/routing/route_set.rb @@ -463,13 +463,6 @@ module ActionController routes_by_controller[controller][action][merged.keys] end - def routes_for_controller_and_action(controller, action) - selected = routes.select do |route| - route.matches_controller_and_action? controller, action - end - (selected.length == routes.length) ? routes : selected - end - def routes_for_controller_and_action_and_keys(controller, action, keys) selected = routes.select do |route| route.matches_controller_and_action? controller, action |