diff options
author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2017-12-08 16:17:15 +0300 |
---|---|---|
committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-01-17 11:55:00 +0300 |
commit | faadd9e0e4edcb332b41aceabd6c03a796e11978 (patch) | |
tree | 3fc3f2dec56e9e6c447888efd0e2759c55d4123b /app/services/test_hooks | |
parent | f99b0cc5853f10e07a8ed60caa40c07a4c677d6f (diff) |
use class reader instead of dynamic constant
Diffstat (limited to 'app/services/test_hooks')
-rw-r--r-- | app/services/test_hooks/base_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/test_hooks/base_service.rb b/app/services/test_hooks/base_service.rb index 20d90504bd2..e9aefb1fb75 100644 --- a/app/services/test_hooks/base_service.rb +++ b/app/services/test_hooks/base_service.rb @@ -9,7 +9,7 @@ module TestHooks end def execute - trigger_key = hook.class::TRIGGERS.key(trigger.to_sym) + trigger_key = hook.class.triggers.key(trigger.to_sym) trigger_data_method = "#{trigger}_data" if trigger_key.nil? || !self.respond_to?(trigger_data_method, true) |