Sha256: 829994b582362783c2e0a1473ea6bc14f558a6aa4e38cd040aa7a95b868f3da5
Contents?: true
Size: 303 Bytes
Versions: 7
Compression:
Stored size: 303 Bytes
Contents
# frozen_string_literal: true # Adds CSRF meta tags # # == Basic usage: # {%csrf_meta_tags%} # class CsrfMetaTagsTag < LiquidumTag def render(context) super context.registers['controller'].helpers.csrf_meta_tags end end Liquid::Template.register_tag('csrf_meta_tags', CsrfMetaTagsTag)
Version data entries
7 entries across 7 versions & 1 rubygems