Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 919888503d
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.438 kB
class Rails::InfoController < ActionController::Base
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
protected
def consider_all_requests_local?
Rails.application.config.consider_all_requests_local
end
end
Jump to Line
Something went wrong with that request. Please try again.