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