Commit f64e20cffa0fc0da340d1136bc21b18e6b69772b
1 parent
36aa7be3
Exists in
master
and in
1 other branch
fix Err fingerprint
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
app/models/error_report.rb
... | ... | @@ -59,7 +59,7 @@ class ErrorReport |
59 | 59 | private |
60 | 60 | def fingerprint_source |
61 | 61 | { |
62 | - :backtrace => backtrace.lines[0..3], | |
62 | + :backtrace => backtrace_head.map(&:to_s), | |
63 | 63 | :error_class => error_class, |
64 | 64 | :component => component, |
65 | 65 | :action => action, |
... | ... | @@ -68,5 +68,9 @@ class ErrorReport |
68 | 68 | } |
69 | 69 | end |
70 | 70 | |
71 | + def backtrace_head | |
72 | + backtrace.lines[0..3] | |
73 | + end | |
74 | + | |
71 | 75 | end |
72 | 76 | ... | ... |