From 1e02f6d55f2a615cb0ca5de1c379dae24feedc79 Mon Sep 17 00:00:00 2001 From: tdreyno Date: Wed, 11 Nov 2009 16:22:26 -0800 Subject: [PATCH] fix cache buster --- lib/middleman/features/cache_buster.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/middleman/features/cache_buster.rb b/lib/middleman/features/cache_buster.rb index 87bddc61..b417061a 100644 --- a/lib/middleman/features/cache_buster.rb +++ b/lib/middleman/features/cache_buster.rb @@ -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