Commit bcbee13b29202add33a71d53aa4cd130c136107b

Authored by Ryan Jones
1 parent df20cb1a
Exists in master and in 1 other branch production

proper campfire url

app/models/issue_trackers/campfire_tracker.rb
@@ -28,7 +28,7 @@ class IssueTrackers::CampfireTracker < IssueTracker @@ -28,7 +28,7 @@ class IssueTrackers::CampfireTracker < IssueTracker
28 28
29 # update the problem to say where it was sent 29 # update the problem to say where it was sent
30 problem.update_attributes( 30 problem.update_attributes(
31 - :issue_link => "Sent to Campfire", 31 + :issue_link => url,
32 :issue_type => Label 32 :issue_type => Label
33 ) 33 )
34 end 34 end
app/models/notice_observer.rb
@@ -5,10 +5,10 @@ class NoticeObserver < Mongoid::Observer @@ -5,10 +5,10 @@ class NoticeObserver < Mongoid::Observer
5 return unless should_notify? notice 5 return unless should_notify? notice
6 6
7 # if the app has the campfire tracker, post into the chat 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 app.issue_tracker.create_issue(notice) 9 app.issue_tracker.create_issue(notice)
10 end 10 end
11 - 11 +
12 Mailer.err_notification(notice).deliver 12 Mailer.err_notification(notice).deliver
13 end 13 end
14 14