Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/hooks/service_hook.rb')
-rw-r--r--app/models/hooks/service_hook.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/hooks/service_hook.rb b/app/models/hooks/service_hook.rb
index 453b986ca4d..b1f1ab79b6a 100644
--- a/app/models/hooks/service_hook.rb
+++ b/app/models/hooks/service_hook.rb
@@ -5,6 +5,8 @@ class ServiceHook < WebHook
extend ::Gitlab::Utils::Override
+ self.allow_legacy_sti_class = true
+
belongs_to :integration
validates :integration, presence: true