class Rails::InfoController
def consider_all_requests_local?
def consider_all_requests_local? Rails.application.config.consider_all_requests_local end
def properties
def properties if consider_all_requests_local? || request.local? render :inline => Rails::Info.to_html else render :text => '<p>For security purposes, this information is only available to local requests.</p>', :status => :forbidden end end