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

Version Path
scribo-1.0.44 lib/scribo/liquid/tags/csrf_meta_tags_tag.rb
scribo-1.0.43 lib/scribo/liquid/tags/csrf_meta_tags_tag.rb
scribo-1.0.42 lib/scribo/liquid/tags/csrf_meta_tags_tag.rb
scribo-1.0.41 lib/scribo/liquid/tags/csrf_meta_tags_tag.rb
scribo-1.0.40 lib/scribo/liquid/tags/csrf_meta_tags_tag.rb
scribo-1.0.39 lib/scribo/liquid/tags/csrf_meta_tags_tag.rb
scribo-1.0.38 lib/scribo/liquid/tags/csrf_meta_tags_tag.rb