Sha256: 7f2e0523509ae42c0da2d19b6fae425582892390c7988ef4b2e8e252f0a8cece

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 Bytes

Contents

require "rails/application/route_inspector"

module Rails
  class RoutesController < RailsInfoController
    layout 'rails_info'
    before_filter :require_local!

    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.4 app/controllers/rails/routes_controller.rb