Skip to content
Snippets Groups Projects
Commit 2ab7dc9a authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

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

* Use URI.join for generate asset URL

* to String
parent 2b9bc9c1
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment