From 8faa2f4add38eca0593f89cce9b0b05e6f80ac47 Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Tue, 20 Sep 2011 22:03:14 +1000 Subject: [PATCH] expire index every time - fixes #13 --- lib/guard/rails-assets/rails_runner.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/guard/rails-assets/rails_runner.rb b/lib/guard/rails-assets/rails_runner.rb index 8b800d4..b87960d 100644 --- a/lib/guard/rails-assets/rails_runner.rb +++ b/lib/guard/rails-assets/rails_runner.rb @@ -47,6 +47,7 @@ module Guard return false unless @@rails_booted begin Rake::Task['assets:clean'].execute + ::Rails.application.assets.instance_eval { expire_index! } Rake::Task['assets:precompile'].execute true rescue => e