We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54e6cf2 commit 76d1f65Copy full SHA for 76d1f65
lib/sprockets/rails/helper.rb
@@ -162,6 +162,12 @@ def stylesheet_link_tag(*sources)
162
end
163
164
protected
165
+ # This is awkward: `integrity` is a boolean option indicating whether
166
+ # we want to include or omit the subresource integrity hash, but the
167
+ # options hash is also passed through as literal tag attributes.
168
+ # That means we have to delete the shortcut boolean option so it
169
+ # doesn't bleed into the tag attributes, but also check its value if
170
+ # it's boolean-ish.
171
def compute_integrity?(options)
172
if secure_subresource_integrity_context?
173
case options['integrity']
0 commit comments