Module: Flip::CookieStrategy::Loader
- Defined in:
- lib/flip/cookie_strategy.rb
Overview
Include in ApplicationController to push cookies into CookieStrategy. Users before_filter and after_filter rather than around_filter to avoid pointlessly adding to stack depth.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
extend ActiveSupport::Concern # rails ~> 3.
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
extend ActiveSupport::Concern # rails ~> 3
50 51 52 53 54 55 56 57 |
# File 'lib/flip/cookie_strategy.rb', line 50 def self.included(base) base.extend ClassMethods base.before_filter :flip_cookie_strategy_before base.after_filter :flip_cookie_strategy_after base.class_eval do end end |
Instance Method Details
#flip_cookie_strategy_after ⇒ Object
62 63 64 |
# File 'lib/flip/cookie_strategy.rb', line 62 def CookieStrategy. = nil end |
#flip_cookie_strategy_before ⇒ Object
59 60 61 |
# File 'lib/flip/cookie_strategy.rb', line 59 def CookieStrategy. = end |