소스 검색

Use URI.join for generate asset URL (#2741)

* Use URI.join for generate asset URL

* to String
Yamagishi Kazutoshi 7 년 전
부모
커밋
2ab7dc9a55
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/helpers/routing_helper.rb

+ 1 - 1
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