Sha256: 33ebf7259478888d8467300a21c8331417b385276114e359bcfef58b7e5a48d6
Contents?: true
Size: 725 Bytes
Versions: 8
Compression:
Stored size: 725 Bytes
Contents
module Locomotive module Builder module Liquid module Tags module Csrf class Param < ::Liquid::Tag def render(context) %{<input type="hidden" name="authenticity_token" value="helloworld" />} end end class Meta < ::Liquid::Tag def render(context) %{ <meta name="csrf-param" content="authenticity_token" /> <meta name="csrf-token" content="helloworld" /> } end end end ::Liquid::Template.register_tag('csrf_param', Csrf::Param) ::Liquid::Template.register_tag('csrf_meta', Csrf::Meta) end end end end
Version data entries
8 entries across 8 versions & 1 rubygems