1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

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