summaryrefslogtreecommitdiff
path: root/app/models/integrations/base_chat_notification.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/integrations/base_chat_notification.rb')
-rw-r--r--app/models/integrations/base_chat_notification.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/models/integrations/base_chat_notification.rb b/app/models/integrations/base_chat_notification.rb
index 5eae8bce92a..5eba906b178 100644
--- a/app/models/integrations/base_chat_notification.rb
+++ b/app/models/integrations/base_chat_notification.rb
@@ -61,7 +61,12 @@ module Integrations
end
def self.supported_events
- SUPPORTED_EVENTS
+ SUPPORTED_EVENTS + extra_events
+ end
+
+ # To be overridden either by inherited classes or in EE
+ def self.extra_events
+ []
end
def fields
@@ -253,3 +258,5 @@ module Integrations
end
end
end
+
+Integrations::BaseChatNotification.prepend_mod_with('Integrations::BaseChatNotification')