Sha256: f44e2e59c6eb7b5dc741c6bfb8cdeaad6f0d778838b58156dff6137c6a8677e6
Contents?: true
Size: 529 Bytes
Versions: 1
Compression:
Stored size: 529 Bytes
Contents
module Sextant class RoutesController < ApplicationController layout 'sextant/application' before_filter :require_local! def index @routes = Sextant.format_routes end private def require_local! unless local_request? render :text => '<p>For security purposes, this information is only available to local requests.</p>', :status => :forbidden end end def local_request? Rails.application.config.consider_all_requests_local || request.local? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sextant-0.2.2 | app/controllers/sextant/routes_controller.rb |