method

filter_routes

Importance_0
filter_routes(filter) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 116
        def filter_routes(filter)
          if filter
            @routes.select do |route|
              route_wrapper = RouteWrapper.new(route)
              filter.any? { |filter_type, value| route_wrapper.matches_filter?(filter_type, value) }
            end
          else
            @routes
          end
        end
Register or log in to add new notes.