Sha256: 7523c67a5b222c293624aa253c460b1a61b97ee60e5d545579603f9a8a493d39
Contents?: true
Size: 588 Bytes
Versions: 52
Compression:
Stored size: 588 Bytes
Contents
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
Version data entries
52 entries across 51 versions & 8 rubygems