aboutsummaryrefslogblamecommitdiffstats
path: root/railties/builtin/rails_info/rails/info_controller.rb
blob: 47e87c5bf597ce50fb8e9f97a8f1e9f5702af72b (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                    
                                                    

                                           
                                                                                                                                  

       
   
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
end