blob: 49e5431a160ff47a73f6e8af80d89e254cee749b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | 
require 'rails/application_controller'
require 'action_dispatch/routing/inspector'
class Rails::InfoController < Rails::ApplicationController # :nodoc:
  prepend_view_path ActionDispatch::DebugExceptions::RESCUES_TEMPLATE_PATH
  layout -> { request.xhr? ? false : 'application' }
  before_action :require_local!
  def index
    redirect_to action: :routes
  end
  def properties
    @info = Rails::Info.to_html
    @page_title = 'Properties'
  end
  def routes
    @routes_inspector = ActionDispatch::Routing::RoutesInspector.new(_routes.routes)
    @page_title = 'Routes'
  end
end
 
  |