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 | 24 | def create_notification(problem) |
| 25 | 25 | HTTParty.post(service_url, :body => post_payload(problem), :headers => { 'Content-Type' => 'application/json' }) |
| 26 | 26 | end |
| 27 | + | |
| 28 | + def configured? | |
| 29 | + service_url.present? | |
| 30 | + end | |
| 27 | 31 | end | ... | ... |