Class: Archangel::Liquid::Tags::CsrfMetaTagsTag

Inherits:
ApplicationTag
  • Object
show all
Defined in:
lib/archangel/liquid/tags/csrf_meta_tags_tag.rb

Overview

CSRF meta tag custom tag for Liquid

Example

{% csrf_meta_tags %}

Constant Summary

Constants inherited from ApplicationTag

ApplicationTag::ASSET_ATTRIBUTES_SYNTAX, ApplicationTag::ASSET_SYNTAX, ApplicationTag::KEY_VALUE_ATTRIBUTES_SYNTAX, ApplicationTag::SLUG_ATTRIBUTES_SYNTAX, ApplicationTag::SLUG_SYNTAX, ApplicationTag::URL_ATTRIBUTES_SYNTAX

Instance Method Summary collapse

Instance Method Details

#render(context) ⇒ String

Render the CSRF meta tags for the theme

:reek:UtilityFunction

Parameters:

  • context (Object)

    the Liquid context

Returns:

  • (String)

    the CSRF meta tags


20
21
22
# File 'lib/archangel/liquid/tags/csrf_meta_tags_tag.rb', line 20

def render(context)
  context.registers[:view].csrf_meta_tags
end