Commit 0d5434b3ade03a45122be60d2baa26b98da3222b
1 parent
8cf20c3e
Exists in
master
and in
1 other branch
cache app on notice
Notices always have an app API key when they arrive at Errbit, so it makes sense to cache the app id onto the notice object. This will allow for more efficient refingerprinting and reporting down the road.
Showing
4 changed files
with
15 additions
and
1 deletions
Show diff stats
app/models/error_report.rb
app/models/notice.rb
... | ... | @@ -12,8 +12,9 @@ class Notice |
12 | 12 | field :framework |
13 | 13 | field :error_class |
14 | 14 | delegate :lines, :to => :backtrace, :prefix => true |
15 | - delegate :app, :problem, :to => :err | |
15 | + delegate :problem, :to => :err | |
16 | 16 | |
17 | + belongs_to :app | |
17 | 18 | belongs_to :err |
18 | 19 | belongs_to :backtrace, :index => true |
19 | 20 | ... | ... |