module Sprockets::Rails::Helper
def compute_integrity?(options)
doesn't bleed into the tag attributes, but also check its value if
That means we have to delete the shortcut boolean option so it
options hash is also passed through as literal tag attributes.
we want to include or omit the subresource integrity hash, but the
This is awkward: `integrity` is a boolean option indicating whether
def compute_integrity?(options) if secure_subresource_integrity_context? case options['integrity'] when nil, false, true options.delete('integrity') == true end else options.delete 'integrity' false end end