Skip to content

Commit

Permalink
[helper] Don't calculate timestamp using uri_root_path #1090
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed Mar 16, 2013
1 parent f06b98c commit 18dee94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion padrino-helpers/lib/padrino-helpers/asset_tag_helpers.rb
Expand Up @@ -322,8 +322,8 @@ def asset_path(kind, source)
source = URI.escape(asset_normalize_extension(kind, source))
return source if source =~ %r{^(/|https?://)} # absolute source
source = File.join(asset_folder_name(kind), source)
timestamp = asset_timestamp(source)
result_path = uri_root_path(source)
timestamp = asset_timestamp(result_path)
"#{result_path}#{timestamp}"
end

Expand Down

0 comments on commit 18dee94

Please sign in to comment.