Commit 1b1b5256f76436642482a158cd9f6a394c631788
Exists in
master
and in
1 other branch
Merge pull request #856 from groupbuddies/fix-slack
Fixing slack integration
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
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 |