From 64d14463e805b60cd937a3d12979bbf1087c6b86 Mon Sep 17 00:00:00 2001 From: Lucas Souza Date: Tue, 5 Jul 2011 14:29:51 -0300 Subject: [PATCH] join asset_host --- lib/sinatra/static_assets.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sinatra/static_assets.rb b/lib/sinatra/static_assets.rb index 88557fe..a3d4dfd 100644 --- a/lib/sinatra/static_assets.rb +++ b/lib/sinatra/static_assets.rb @@ -75,7 +75,7 @@ module Sinatra def source_url(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 def source_url_timestamp(url)