Skip to content

Commit

Permalink
#compute_public_path should use #compute_asset_host
Browse files Browse the repository at this point in the history
  • Loading branch information
pivotal committed Sep 29, 2008
1 parent 067409c commit 60d797c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/synthesis/asset_package_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def compute_public_path(source, dir, ext=nil, add_asset_id=true)
source = "/#{dir}/#{source}" unless source[0] == ?/
asset_id = rails_asset_id(source)
source << '?' + asset_id if defined?(RAILS_ROOT) and add_asset_id and not asset_id.blank?
source = "#{ActionController::Base.asset_host}#{@controller.request.relative_url_root}#{source}"
source = "#{compute_asset_host(source)}#{@controller.request.relative_url_root}#{source}"
end
source
end
Expand Down

0 comments on commit 60d797c

Please sign in to comment.