Sha256: cba6ff77078c2728ff224b39f9347a0ade22f7671a4871377ee81a3ea043c62c

Contents?: true

Size: 254 Bytes

Versions: 2

Compression:

Stored size: 254 Bytes

Contents

class Rails::RoutesController < ActionController::Base
  layout 'rails/routes'

  before_filter :ensure_local

  def index
    @routes = Sextant.format_routes
  end

  private
  def ensure_local
    return false if ActionView::Resolver.caching
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sextant-0.1.3 app/controllers/rails/routes_controller.rb
sextant-0.1.2 app/controllers/rails/routes_controller.rb