module ApplicationHelper::Amp::Components::JavascriptTagHelper
Public Instance Methods
amp_js(source = asset_url("amp/application.js"))
click to toggle source
# File lib/generators/templates/components/helpers/javascript_tag_helper.rb, line 4 def amp_js(source = asset_url("amp/application.js")) options = {} options[:src] = src options[:sandbox] = "allow-scripts allow-same-origin" content_tag("amp-iframe", options) end