Methods

Instance Public methods

header(routes)

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

  super
end
🔎 See on GitHub

no_routes(engine, routes, filter)

📝 Source code
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 292
def no_routes(engine, 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
🔎 See on GitHub

Definition files