lib/hanami/assets/helpers.rb in hanami-assets-1.0.0.beta1 vs lib/hanami/assets/helpers.rb in hanami-assets-1.0.0.beta2
- old
+ new
@@ -760,13 +760,15 @@
def _typed_asset_path(source, ext)
source = "#{source}#{ext}" unless source =~ /#{Regexp.escape(ext)}\z/
asset_path(source)
end
+ # @api private
def _subresource_integrity?
!!self.class.assets_configuration.subresource_integrity # rubocop:disable Style/DoubleNegation
end
+ # @api private
def _subresource_integrity_value(source, ext)
source = "#{source}#{ext}" unless source =~ /#{Regexp.escape(ext)}\z/
self.class.assets_configuration.subresource_integrity_value(source) unless _absolute_url?(source)
end