diff --git a/app/models/notification_services/slack_service.rb b/app/models/notification_services/slack_service.rb index 3aa68ac..c681403 100644 --- a/app/models/notification_services/slack_service.rb +++ b/app/models/notification_services/slack_service.rb @@ -24,4 +24,8 @@ class NotificationServices::SlackService < NotificationService def create_notification(problem) HTTParty.post(service_url, :body => post_payload(problem), :headers => { 'Content-Type' => 'application/json' }) end + + def configured? + service_url.present? + end end -- libgit2 0.21.2