etc/app.d/base.rb in rbbt-util-5.5.37 vs etc/app.d/base.rb in rbbt-util-5.5.38
- old
+ new
@@ -1,14 +1,13 @@
#{{{ MODULES AND HELPERS
register Sinatra::RbbtRESTWorkflow
-if Rbbt.etc.workflows.find.exists?
- Rbbt.etc.workflows.find.read.split("\n").each do |workflow|
+Rbbt.etc.workflows.find.read.split("\n").each do |workflow|
+ next if workflow.empty?
Workflow.require_workflow workflow
add_workflow Kernel.const_get(workflow), true
- end
-end
+end if Rbbt.etc.workflows.find.exists?
register Sinatra::RbbtRESTMain
register Sinatra::RbbtRESTEntity
register Sinatra::RbbtRESTFileServer # Remove to prevent serving files
register Sinatra::RbbtRESTKnowledgeBase