From f35182751b40cf1651e1d4e888f1b4e550e7abb1 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 16 Jun 2011 15:57:13 -0400 Subject: [PATCH] better reloading of Jammit to handle new assets created during Guard's lifetime --- lib/guard/jammit.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/guard/jammit.rb b/lib/guard/jammit.rb index 0627d04..eba57f4 100644 --- a/lib/guard/jammit.rb +++ b/lib/guard/jammit.rb @@ -9,6 +9,7 @@ module Guard super # init stuff here, thx! + ::Jammit.load_configuration ::Jammit::DEFAULT_CONFIG_PATH end # ================ @@ -48,8 +49,8 @@ module Guard def jammit ensure_rails_env! - ::Jammit.load_configuration ::Jammit::DEFAULT_CONFIG_PATH - puts "Jamming" + ::Jammit.reload! + puts "Jamming assets..." ::Jammit.packager.force = true ::Jammit.packager.precache_all true