expire index every time - fixes #13

This commit is contained in:
Dmytrii Nagirniak 2011-09-20 22:03:14 +10:00
parent 85b27d3747
commit 8faa2f4add

View File

@ -47,6 +47,7 @@ module Guard
return false unless @@rails_booted return false unless @@rails_booted
begin begin
Rake::Task['assets:clean'].execute Rake::Task['assets:clean'].execute
::Rails.application.assets.instance_eval { expire_index! }
Rake::Task['assets:precompile'].execute Rake::Task['assets:precompile'].execute
true true
rescue => e rescue => e