aboutsummaryrefslogtreecommitdiffstats
path: root/railties/builtin/controllers/rails_info_controller.rb
blob: fe3c2d7c5d0e5a1359e13279d4b5fe01cbc7c348 (plain) (blame)
1
2
3
4
5
6
7
8
9
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