Module: JavascriptAutoInclude::Helpers::ActionController

Defined in:
lib/javascript_auto_include/helpers/action_controller.rb

Overview

ActionController helpers

This module makes sure that the current controller and action are available as public variables and thus accessible for the view helper.

Instance Method Summary collapse

Instance Method Details

#identify_controller_and_actionObject

:nodoc:



10
11
12
13
# File 'lib/javascript_auto_include/helpers/action_controller.rb', line 10

def identify_controller_and_action #:nodoc:
  $CONTROLLER = request.parameters[:controller]
  $ACTION = request.parameters[:action]
end