Module: FrontKit::MetaHelper

Defined in:
app/helpers/front_kit/meta_helper.rb

Instance Method Summary collapse

Instance Method Details

#meta_tagsObject



4
5
6
7
8
9
10
11
12
# File 'app/helpers/front_kit/meta_helper.rb', line 4

def meta_tags
  push_meta_tag property: 'fk:state', content: FrontKit.encode(frontend_state)
  String.new.tap do |buffer|
    buffer << csrf_meta_tags
    meta_tags_container.each do |meta_hash|
      buffer << tag(:meta, meta_hash)
    end
  end.html_safe
end