fix cache buster

This commit is contained in:
tdreyno 2009-11-11 16:22:26 -08:00
parent 62a315bd62
commit 1e02f6d55f

View file

@ -4,7 +4,8 @@ class Middleman::Base
after_feature_init do
::Compass.configuration do |config|
config.asset_cache_buster do |path, real_path|
# real_path = real_path.gsub(self.build_dir, self.public)
real_path = real_path.path if real_path.is_a? File
real_path = real_path.gsub(File.join(self.root, self.build_dir), self.public)
if File.readable?(real_path)
File.mtime(real_path).strftime("%s")
else