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



15
16
17
# File 'lib/active_tools/action_pack/action_controller/path_helper.rb', line 15

def current_action
  request.path_parameters[:action]
end

#current_controllerObject



19
20
21
# File 'lib/active_tools/action_pack/action_controller/path_helper.rb', line 19

def current_controller
  request.path_parameters[:controller]
end

#http_referer(environment = {}) ⇒ Object



23
24
25
# File 'lib/active_tools/action_pack/action_controller/path_helper.rb', line 23

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