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

* Use URI.join for generate asset URL

* to String
lolsob-rspec
Yamagishi Kazutoshi 2017-05-03 18:31:21 +09:00 committed by Eugen Rochko
parent f80de039d7
commit 7efac6d577
1 changed files with 1 additions and 1 deletions

View File

@ -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