|
|
@ -4,6 +4,7 @@ module RoutingHelper
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
include Rails.application.routes.url_helpers
|
|
|
|
include Rails.application.routes.url_helpers
|
|
|
|
include ActionView::Helpers::AssetTagHelper
|
|
|
|
include ActionView::Helpers::AssetTagHelper
|
|
|
|
|
|
|
|
include Webpacker::Helper
|
|
|
|
|
|
|
|
|
|
|
|
included do
|
|
|
|
included do
|
|
|
|
def default_url_options
|
|
|
|
def default_url_options
|
|
|
@ -17,6 +18,10 @@ module RoutingHelper
|
|
|
|
URI.join(root_url, source).to_s
|
|
|
|
URI.join(root_url, source).to_s
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def full_pack_url(source, **options)
|
|
|
|
|
|
|
|
full_asset_url(asset_pack_path(source, options))
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
private
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
|
|
def use_storage?
|
|
|
|
def use_storage?
|
|
|
|