lib/sewing_kit/webpack/helper.rb in sewing_kit-0.92.1 vs lib/sewing_kit/webpack/helper.rb in sewing_kit-0.93.0
- old
+ new
@@ -1,15 +1,12 @@
# frozen_string_literal: true
require 'base64'
-require 'action_view/helpers'
require 'sewing_kit/webpack/manifest'
module SewingKit
module Webpack
module Helper
- include ActionView::Helpers
-
class UnknownAssetError < StandardError
end
Asset = Struct.new(:path, :integrity)
@@ -48,9 +45,13 @@
create_asset_tag(:script, asset, options)
end
safe_join(tags, "\n")
+ end
+
+ def sewing_kit_assets_bundle_name
+ SewingKit::Webpack::Manifest.asset_bundle_name(request.user_agent)
end
private
def create_asset_tag(tag_type, asset, tag_options)