Class: SetSessionTag

Inherits:
LiquidumTag
  • Object
show all
Defined in:
lib/scribo/liquid/tags/set_session.rb

Overview

Sets the value in the session

name value% locale ‘nl’% locale request.query_parameters% locale request.query_parameters% coupon_code ‘beyou’%

Instance Method Summary collapse

Instance Method Details

#render(context) ⇒ Object



11
12
13
14
15
16
# File 'lib/scribo/liquid/tags/set_session.rb', line 11

def render(context)
  super

  context.registers['controller'].session[argv1] = sargs.first
  ''
end