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:
parent
a1c289dbe4
commit
1185500ff0
1 changed files with 0 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue