Cache buster timestamps not working in some cases. Closes GH-75.

This commit is contained in:
Chris Eppstein 2010-01-10 08:26:39 -08:00
parent 31cde1b107
commit 05d89b082c

View File

@ -116,7 +116,7 @@ module Compass::SassExtensions::Functions::Urls
def default_cache_buster(path, real_path)
if File.readable?(real_path)
File.mtime(real_path).strftime("%s")
File.mtime(real_path).to_i.to_s
else
$stderr.puts "WARNING: '#{File.basename(path)}' was not found (or cannot be read) in #{File.dirname(real_path)}"
end