about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2018-01-04 23:36:55 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-01-04 15:36:55 +0100
commit3c189642561f27925803448059e212718e4a2497 (patch)
tree31bdc4fb92b0e31d0ae2ec64856c4f75e4ba3028 /app/helpers
parentc61dd918a24761b7a96cb9e65e6943238f630715 (diff)
Fallback default thumbnail in instance status API (#6177)
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/routing_helper.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/routing_helper.rb b/app/helpers/routing_helper.rb
index 11894a895..998b7566f 100644
--- a/app/helpers/routing_helper.rb
+++ b/app/helpers/routing_helper.rb
@@ -4,6 +4,7 @@ module RoutingHelper
   extend ActiveSupport::Concern
   include Rails.application.routes.url_helpers
   include ActionView::Helpers::AssetTagHelper
+  include Webpacker::Helper
 
   included do
     def default_url_options
@@ -17,6 +18,10 @@ module RoutingHelper
     URI.join(root_url, source).to_s
   end
 
+  def full_pack_url(source, **options)
+    full_asset_url(asset_pack_path(source, options))
+  end
+
   private
 
   def use_storage?