method
routes_for_controller_and_action
v2.1.0 -
Show latest stable
- Class:
ActionController::Routing::RouteSet
routes_for_controller_and_action(controller, action)public
No documentation available.
# File actionpack/lib/action_controller/routing/route_set.rb, line 414
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