Module: CookiesManager::ControllerAdditions::ClassMethods
- Defined in:
- lib/cookies_manager/controller_additions.rb
Instance Method Summary collapse
-
#load_cookies_manager ⇒ Object
Sets up a before filter that creates a new CookiesManager into an instance variable, which is made available to all views through the
cookies_manager
helper method.
Instance Method Details
#load_cookies_manager ⇒ Object
Sets up a before filter that creates a new CookiesManager into an instance variable,
which is made available to all views through the cookies_manager
helper method.
You can call this method on your controller class as follows:
class YourController < ApplicationController
load_cookies_manager
16 17 18 |
# File 'lib/cookies_manager/controller_additions.rb', line 16 def before_filter :build_cookies_manager end |