Sha256: b32fdf3a466e4da1a782ebd4f437c98daa5ed67865ff082155f5de9a5f8a3a44
Contents?: true
Size: 328 Bytes
Versions: 2
Compression:
Stored size: 328 Bytes
Contents
# frozen_string_literal: true module Phlexible module Rails class MetaTagsComponent < Phlex::HTML def template helpers.controller.view_assigns['meta_tags']&.each do |name, content| meta name: name, content: content.is_a?(String) ? content : content.to_json end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phlexible-1.0.0 | lib/phlexible/rails/meta_tags_component.rb |
phlexible-1.0.0.beta.1 | lib/phlexible/rails/meta_tags_component.rb |