lib/doozer/app.rb in doozer-0.2.5 vs lib/doozer/app.rb in doozer-0.2.6
- old
+ new
@@ -255,13 +255,15 @@
Doozer::Partial.clear_loaded_partials
elsif(status == FileSystemWatcher::MODIFIED) then
puts "modified: #{file}"
load_files
Doozer::Partial.clear_loaded_partials
+ Doozer::Configs.clear_static_files
elsif(status == FileSystemWatcher::DELETED) then
puts "deleted: #{file}"
load_files
Doozer::Partial.clear_loaded_partials
+ Doozer::Configs.clear_static_files
end
}
#don't join the thread it messes up rackup threading watcher.join()
# p watcher.isStarted?
# p watcher.isStopped?
\ No newline at end of file