class Rails::Command::RoutesCommand
:nodoc:
def formatter
def formatter if options.key?("expanded") ActionDispatch::Routing::ConsoleFormatter::Expanded.new else ActionDispatch::Routing::ConsoleFormatter::Sheet.new end end
def inspector
def inspector ActionDispatch::Routing::RoutesInspector.new(Rails.application.routes.routes) end
def perform(*)
def perform(*) require_application_and_environment! require "action_dispatch/routing/inspector" say inspector.format(formatter, routes_filter) end
def routes_filter
def routes_filter options.symbolize_keys.slice(:controller, :grep) end