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

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

Instance Method Summary collapse

Instance Method Details

#before_method(meth) ⇒ Object



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

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