Sha256: 3b5367d6712258d853b91ce6beac745da9b1ef3af2ed4b9d47e3d667dfae21d1

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

require "rails/application/route_inspector"

module Rails
  class RoutesController < RailsInfoController
    layout 'rails_info'

    def index
      Rails.application.reload_routes!
      inspector = Rails::Application::RouteInspector.new
      @routes = inspector.format(Rails.application.routes.routes, ENV['CONTROLLER']).join "\n"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
secondbureau-0.0.4.3 app/controllers/rails/routes_controller.rb