Class: Rails::InfoController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/rails/info_controller.rb

Instance Method Summary collapse

Instance Method Details

#propertiesObject



2
3
4
5
6
7
8
# File 'lib/rails/info_controller.rb', line 2

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