method
match_route
v6.0.0 -
Show latest stable
- Class:
Rails::InfoController
match_route()private
No documentation available.
# File railties/lib/rails/info_controller.rb, line 37
def match_route
_routes.routes.select { |route|
yield route.path
}.map { |route| route.path.spec.to_s }
end