From 2ab7dc9a551dee6adc17df57ccb698aa037dd4ec Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Wed, 3 May 2017 18:31:21 +0900 Subject: [PATCH] Use URI.join for generate asset URL (#2741) * Use URI.join for generate asset URL * to String --- app/helpers/routing_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/routing_helper.rb b/app/helpers/routing_helper.rb index 9ae29ec9..9650ee28 100644 --- a/app/helpers/routing_helper.rb +++ b/app/helpers/routing_helper.rb @@ -12,6 +12,6 @@ module RoutingHelper end def full_asset_url(source) - Rails.configuration.x.use_s3 ? source : File.join(root_url, ActionController::Base.helpers.asset_url(source)) + Rails.configuration.x.use_s3 ? source : URI.join(root_url, ActionController::Base.helpers.asset_url(source)).to_s end end