Class: Locomotive::Liquid::Drops::SessionProxy

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/locomotive/liquid/drops/session_proxy.rb

Instance Method Summary collapse

Instance Method Details

#before_method(meth) ⇒ Object



7
8
9
10
# File 'lib/locomotive/liquid/drops/session_proxy.rb', line 7

def before_method(meth)
  controller = @context.registers[:controller]
  controller.session[meth.to_sym]
end