aboutsummaryrefslogblamecommitdiffstats
path: root/railties/builtin/controllers/rails_info_controller.rb
blob: ca2801e075faef9475a82fe9d02f88581fe0a642 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                                                             
module Controllers #:nodoc:
  class RailsInfoController < ApplicationController
    def properties
      if 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 => 500
      end
    end
  end
end