Class: CsrfMetaTagsTag

Inherits:
LiquidumTag
  • Object
show all
Defined in:
lib/scribo/liquid/tags/csrf_meta_tags_tag.rb

Overview

Adds CSRF meta tags

Basic usage:

{%csrf_meta_tags%}

Instance Method Summary collapse

Instance Method Details

#render(context) ⇒ Object



9
10
11
12
13
# File 'lib/scribo/liquid/tags/csrf_meta_tags_tag.rb', line 9

def render(context)
  super

  context.registers['controller'].helpers.csrf_meta_tags
end