Module: CookiesManager::ControllerAdditions::ClassMethods

Defined in:
lib/cookies_manager/controller_additions.rb

Instance Method Summary collapse

Instance Method Details

#load_cookies_managerObject

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 load_cookies_manager
  before_filter :build_cookies_manager
end