Shrine default_url with webpacker
I am using Rails 6.1.1 with webpacker and Shrine. The issue I am coming across is using the default URL plugin with webpacker based assets. When I use it in development it seems to load just fine but seems to be using sprockets, however, when I go to production mode I keep getting file not found errors. Is it possible to use the webpacker helpers in my uploader?
I figured it out, and yes it is using the asset helper in the uploader.
Attacher.default_url do |**_options|
ActionController::Base.helpers.asset_pack_path "media/images/#{name}-missing.svg"
end