summaryrefslogtreecommitdiff
path: root/app/models/project_services/chat_notification_service.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-04-18 10:50:04 +0100
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-04-18 15:33:57 +0100
commit7696191e330337ab5fac207bf24aa13d211a0ded (patch)
tree0bf4707a863fec40481ec0c1d71f3c442a95176c /app/models/project_services/chat_notification_service.rb
parent554d29749326bdf9bc9ec7723311195dd1a42e9b (diff)
downloadgitlab-ce-7696191e330337ab5fac207bf24aa13d211a0ded.tar.gz
disables test settings on chat notification services when repository is empty31009-disable-test-settings-on-services-when-repository-is-empty
Diffstat (limited to 'app/models/project_services/chat_notification_service.rb')
-rw-r--r--app/models/project_services/chat_notification_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/chat_notification_service.rb b/app/models/project_services/chat_notification_service.rb
index fa782c6fbb7..f2dfb87dbda 100644
--- a/app/models/project_services/chat_notification_service.rb
+++ b/app/models/project_services/chat_notification_service.rb
@@ -22,7 +22,7 @@ class ChatNotificationService < Service
end
def can_test?
- valid?
+ super && valid?
end
def self.supported_events