~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/railties/builtin/rails_info/rails/info_controller.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
class Rails::InfoController < ActionController::Base
2
 
  def properties
3
 
    if consider_all_requests_local || local_request?
4
 
      render :inline => Rails::Info.to_html
5
 
    else
6
 
      render :text => '<p>For security purposes, this information is only available to local requests.</p>', :status => 500
7
 
    end
8
 
  end
9
 
end