Commit 78119e5b32dd3f4fd6dda0c6153c9bb88b91ded6

Authored by Stephen Crosby
1 parent 464a18ef
Exists in master

validate notice before caching it

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
app/models/error_report.rb
@@ -52,7 +52,9 @@ class ErrorReport @@ -52,7 +52,9 @@ class ErrorReport
52 return @notice if @notice 52 return @notice if @notice
53 53
54 make_notice 54 make_notice
55 - error.notices << @notice 55 + notice.err_id = error.id
  56 + notice.save!
  57 +
56 cache_attributes_on_problem 58 cache_attributes_on_problem
57 email_notification 59 email_notification
58 services_notification 60 services_notification