blob: 196eeb4a6c2aa6d8a916dfc18265f347ceca2038 (
plain) (
tree)
|
|
class Rails::InfoController < ActionController::Base
def properties
if consider_all_requests_local? || local_request?
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
protected
def consider_all_requests_local?
Rails.application.config.consider_all_requests_local
end
end
|