better reloading of Jammit to handle new assets created during Guard's lifetime

This commit is contained in:
John Bintz 2011-06-16 15:57:13 -04:00
parent eb2f282b46
commit f35182751b

View File

@ -9,6 +9,7 @@ module Guard
super super
# init stuff here, thx! # init stuff here, thx!
::Jammit.load_configuration ::Jammit::DEFAULT_CONFIG_PATH
end end
# ================ # ================
@ -48,8 +49,8 @@ module Guard
def jammit def jammit
ensure_rails_env! ensure_rails_env!
::Jammit.load_configuration ::Jammit::DEFAULT_CONFIG_PATH ::Jammit.reload!
puts "Jamming" puts "Jamming assets..."
::Jammit.packager.force = true ::Jammit.packager.force = true
::Jammit.packager.precache_all ::Jammit.packager.precache_all
true true