Commit 7b1eabe6a17bc2d65d101a88938c801d8cc8bbb7
1 parent
e8e70dfd
Exists in
master
and in
1 other branch
check for notficaiton service, fire off if exists
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/models/notice_observer.rb
... | ... | @@ -4,9 +4,9 @@ class NoticeObserver < Mongoid::Observer |
4 | 4 | def after_create notice |
5 | 5 | return unless should_notify? notice |
6 | 6 | |
7 | - # if the app has the campfire tracker, post into the chat | |
8 | - if !notice.app.issue_tracker.nil? && notice.app.issue_tracker.is_a?(CampfireTracker) | |
9 | - notice.app.issue_tracker.create_issue(notice.problem) | |
7 | + # if the app has a notficiation service, fire it off | |
8 | + unless notice.app.notification_service.nil? | |
9 | + notice.app.notification_service.create_notification(notice.problem) | |
10 | 10 | end |
11 | 11 | |
12 | 12 | Mailer.err_notification(notice).deliver | ... | ... |