diff options
Diffstat (limited to 'app/models/work_items/widgets/base.rb')
-rw-r--r-- | app/models/work_items/widgets/base.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/models/work_items/widgets/base.rb b/app/models/work_items/widgets/base.rb index b54b84f1e1b..a8b1b3f9a59 100644 --- a/app/models/work_items/widgets/base.rb +++ b/app/models/work_items/widgets/base.rb @@ -16,9 +16,13 @@ module WorkItems end def self.callback_class - Issuable::Callbacks.const_get(name.demodulize, false) + WorkItems::Callbacks.const_get(name.demodulize, false) rescue NameError - nil + begin + Issuable::Callbacks.const_get(name.demodulize, false) + rescue NameError + nil + end end def type |