def nonced_javascript_include_tag(*args, &block)
      opts = extract_options(args).merge(nonce: _content_security_policy_nonce(:script))

      javascript_include_tag(*args, opts, &block)
    end
def nonced_javascript_include_tag(*args, &block)
      opts = extract_options(args).merge(nonce: _content_security_policy_nonce(:script))

      javascript_include_tag(*args, opts, &block)
    end
Public: create a script src tag using the content security policy nonce.
 Instructs secure_headers to append a nonce to script-src directive.

 Returns an html-safe script tag with the nonce attribute.