Skip to Content Skip to Search
Methods
H
N

Instance Public methods

header(routes)

# File actionpack/lib/action_dispatch/routing/inspector.rb, line 262
        def header(routes)
          @buffer << <<~MSG
            Found #{routes.count} unused #{"route".pluralize(routes.count)}:
          MSG

          super
        end

no_routes(routes, filter)

# File actionpack/lib/action_dispatch/routing/inspector.rb, line 270
def no_routes(routes, filter)
  @buffer <<
    if filter.none?
      "No unused routes found."
    elsif filter.key?(:controller)
      "No unused routes found for this controller."
    elsif filter.key?(:grep)
      "No unused routes found for this grep pattern."
    end
end