lundi 27 juin 2016

Override javascript_tag type for json-ld in Rails 3.2.x

Looking at the underlying code for javascript_tag it may not be possible, but does anyone know if it's possible to override the javascript_tag default type of type="text/javascript" in Rails 3.2.2? Or possible without a lot of janky code?

I'm trying to do something like this, but I can look into other options.

javascript_tag type: 'application/ld+json' do
    some stuff here
end

Aucun commentaire:

Enregistrer un commentaire