Permalink
Browse files

Assume compute_asset_host returns reasonable values.

  • Loading branch information...
1 parent bb47927 commit dc09cc055ab79ec8181ec4089449c94759700e51 @thedarkone thedarkone committed Sep 26, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -718,7 +718,7 @@ def rewrite_extension(source, dir, ext)
def rewrite_host_and_protocol(source, has_request)
host = compute_asset_host(source)
- if has_request && host.present? && !is_uri?(host)
+ if has_request && host && !is_uri?(host)
host = "#{controller.request.protocol}#{host}"
end
"#{host}#{source}"

0 comments on commit dc09cc0

Please sign in to comment.