Module: Gricer::ActionController::Base
- Defined in:
- lib/gricer/action_controller/base.rb
Overview
Gricer’s ActionController base enhancements
Class Method Summary collapse
-
.included(base) ⇒ Object
Include the helper functions into controllers.
Instance Method Summary collapse
-
#gricer_user_id ⇒ Integer
This function is a stub for the mechanism to include the current users id into the statistics of gricer.
Class Method Details
.included(base) ⇒ Object
Include the helper functions into controllers.
8 9 10 11 12 |
# File 'lib/gricer/action_controller/base.rb', line 8 def self.included(base) base.module_eval do helper_attr :gricer_user_id end end |
Instance Method Details
#gricer_user_id ⇒ Integer
This function is a stub for the mechanism to include the current users id into the statistics of gricer.
21 22 23 |
# File 'lib/gricer/action_controller/base.rb', line 21 def gricer_user_id nil end |