1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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>
This commit is contained in:
Gabe da Silveira 2009-08-09 02:27:53 -07:00 committed by Pratik Naik
parent a1c289dbe4
commit 1185500ff0

View file

@ -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