Commit 1b1b5256f76436642482a158cd9f6a394c631788

Authored by Stephen Crosby
2 parents 6cf43dc5 f3b1aba0
Exists in master and in 1 other branch production

Merge pull request #856 from groupbuddies/fix-slack

Fixing slack integration
app/models/notification_services/slack_service.rb
@@ -24,4 +24,8 @@ class NotificationServices::SlackService < NotificationService @@ -24,4 +24,8 @@ class NotificationServices::SlackService < NotificationService
24 def create_notification(problem) 24 def create_notification(problem)
25 HTTParty.post(service_url, :body => post_payload(problem), :headers => { 'Content-Type' => 'application/json' }) 25 HTTParty.post(service_url, :body => post_payload(problem), :headers => { 'Content-Type' => 'application/json' })
26 end 26 end
  27 +
  28 + def configured?
  29 + service_url.present?
  30 + end
27 end 31 end