Class: Locomotive::Steam::Liquid::Tags::Csrf::Param

Inherits:
Base
  • Object
show all
Defined in:
lib/locomotive/steam/liquid/tags/csrf.rb

Instance Method Summary collapse

Methods inherited from Base

#render

Instance Method Details

#render_csrf(service) ⇒ Object



21
22
23
# File 'lib/locomotive/steam/liquid/tags/csrf.rb', line 21

def render_csrf(service)
  %(<input type="hidden" name="#{service.field}" value="#{service.token}" />)
end