NameError: uninitialized constant #122

This commit is contained in:
Karel Pičman 2019-04-03 14:08:00 +02:00
parent 14ea99ec7d
commit e041519c81

View File

@ -55,7 +55,7 @@ class CustomWorkflow < ActiveRecord::Base
def self.run_shared_code(object) def self.run_shared_code(object)
log_message '= Running shared code', object log_message '= Running shared code', object
CustomWorkflow.table_exists? # Due to DB migration if CustomWorkflow.table_exists? # Due to DB migration
CustomWorkflow.active.where(:observable => :shared).find_each do |workflow| CustomWorkflow.active.where(:observable => :shared).find_each do |workflow|
unless workflow.run(object, :shared_code) unless workflow.run(object, :shared_code)
log_message '= Abort running shared code', object log_message '= Abort running shared code', object