diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2016-12-27 12:44:24 +0000 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-01-22 00:02:29 +0000 |
commit | cd51af1a991eaa5e16e3c6b94c89d90e20a5641f (patch) | |
tree | 487d4facff51567ab73121aed9f3fec29d7aad8f /app/models/project_services/slack_service.rb | |
parent | 4b7ec44b91e0571d209c790d54947ba1756dac0e (diff) | |
download | gitlab-ce-cd51af1a991eaa5e16e3c6b94c89d90e20a5641f.tar.gz |
adds events to services api deserialization
Diffstat (limited to 'app/models/project_services/slack_service.rb')
-rw-r--r-- | app/models/project_services/slack_service.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/models/project_services/slack_service.rb b/app/models/project_services/slack_service.rb index 76d233a3cca..a7a7390ac93 100644 --- a/app/models/project_services/slack_service.rb +++ b/app/models/project_services/slack_service.rb @@ -7,7 +7,7 @@ class SlackService < ChatNotificationService 'Receive event notifications in Slack' end - def to_param + def self.to_param 'slack' end @@ -37,4 +37,12 @@ class SlackService < ChatNotificationService def default_channel_placeholder "#general" end + + def self.supported_events + %w() + end + + def self.event_names + self.supported_events.map { |event| "#{event}_events" } + end end |