join asset_host

This commit is contained in:
Lucas Souza 2011-07-05 14:29:51 -03:00
parent 03449e9f33
commit 64d14463e8

View File

@ -75,7 +75,7 @@ module Sinatra
def source_url(source) def source_url(source)
url_with_timestamp = source_url_timestamp url_for(source) url_with_timestamp = source_url_timestamp url_for(source)
ENV['asset_host'] + url_with_timestamp if ENV['asset_host'] "#{ENV['asset_host']}#{url_with_timestamp}"
end end
def source_url_timestamp(url) def source_url_timestamp(url)