Sha256: 0435c2194d853610218426e98dc95ea715d2ec15f0432236bcfb4ddf5557d34a
Contents?: true
Size: 723 Bytes
Versions: 22
Compression:
Stored size: 723 Bytes
Contents
module Locomotive module Wagon 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
22 entries across 22 versions & 1 rubygems