Commit bcbee13b29202add33a71d53aa4cd130c136107b
1 parent
df20cb1a
Exists in
master
and in
1 other branch
proper campfire url
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
app/models/issue_trackers/campfire_tracker.rb
app/models/notice_observer.rb
| ... | ... | @@ -5,10 +5,10 @@ class NoticeObserver < Mongoid::Observer |
| 5 | 5 | return unless should_notify? notice |
| 6 | 6 | |
| 7 | 7 | # if the app has the campfire tracker, post into the chat |
| 8 | - if notice.app.issue_tracker.class.name == "IssueTrackers::CampfireTracker" | |
| 8 | + if !notice.app.issue_tracker.nil? && notice.app.issue_tracker.class.name == "IssueTrackers::CampfireTracker" | |
| 9 | 9 | app.issue_tracker.create_issue(notice) |
| 10 | 10 | end |
| 11 | - | |
| 11 | + | |
| 12 | 12 | Mailer.err_notification(notice).deliver |
| 13 | 13 | end |
| 14 | 14 | ... | ... |