Module: ActiveTools::ActionPack::ActionController::PathHelper

Extended by:
ActiveSupport::Concern
Included in:
OnLoadActionController
Defined in:
lib/active_tools/action_pack/action_controller/path_helper.rb,
lib/active_tools/action_pack/action_controller/path_helper/http_referer.rb,
lib/active_tools/action_pack/action_controller/path_helper/complex_helpers.rb

Defined Under Namespace

Modules: ComplexHelpers Classes: HttpReferer

Instance Method Summary collapse

Instance Method Details

#current_actionObject



17
18
19
# File 'lib/active_tools/action_pack/action_controller/path_helper.rb', line 17

def current_action
  request.path_parameters[:action]
end

#current_controllerObject



21
22
23
# File 'lib/active_tools/action_pack/action_controller/path_helper.rb', line 21

def current_controller
  request.path_parameters[:controller]
end

#http_referer(environment = {}) ⇒ Object



25
26
27
# File 'lib/active_tools/action_pack/action_controller/path_helper.rb', line 25

def http_referer(environment = {})
  @http_referer ||= HttpReferer.new(request, environment)
end