Module: JsonLdHelper
- Defined in:
- app/helpers/json_ld_helper.rb
Instance Method Summary collapse
Instance Method Details
#json_ld_tag(entity = nil) ⇒ Object
4 5 6 |
# File 'app/helpers/json_ld_helper.rb', line 4 def json_ld_tag(entity = nil) content_tag(:script, entity.to_json, type: 'application/ld+json') end |