Class: Rails::InfoController

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

Constant Summary

Constants inherited from ActionController::Base

ActionController::Base::MODULES

Instance Method Summary collapse

Methods inherited from ActionController::Base

without_modules

Methods included from ActionController::Compatibility

#_handle_method_missing, #_normalize_options, #assign_shortcuts, #initialize_template_class, #method_for_action, #render_to_body

Methods included from ActiveSupport::Concern

#append_features, extended, #included

Methods inherited from ActionController::Metal

action, call, #content_type, #content_type=, controller_name, #controller_name, #dispatch, #env, inherited, #initialize, #location, #location=, middleware, #params, #params=, #performed?, #response_body=, #status, #status=, #to_a, #url_for, use

Methods inherited from AbstractController::Base

abstract!, #action_methods, action_methods, #available_action?, clear_action_methods!, controller_path, #controller_path, hidden_actions, internal_methods, method_added, #process

Methods included from ActiveSupport::DescendantsTracker

clear, descendants, #descendants, #direct_descendants, direct_descendants, #inherited

Methods included from ActiveSupport::Configurable

#config

Constructor Details

This class inherits a constructor from ActionController::Metal

Instance Method Details

#propertiesObject



2
3
4
5
6
7
8
# File 'railties/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