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,7 +59,7 @@ class ErrorReport | ||
59 | private | 59 | private |
60 | def fingerprint_source | 60 | def fingerprint_source |
61 | { | 61 | { |
62 | - :backtrace => backtrace.lines[0..3], | 62 | + :backtrace => backtrace_head.map(&:to_s), |
63 | :error_class => error_class, | 63 | :error_class => error_class, |
64 | :component => component, | 64 | :component => component, |
65 | :action => action, | 65 | :action => action, |
@@ -68,5 +68,9 @@ class ErrorReport | @@ -68,5 +68,9 @@ class ErrorReport | ||
68 | } | 68 | } |
69 | end | 69 | end |
70 | 70 | ||
71 | + def backtrace_head | ||
72 | + backtrace.lines[0..3] | ||
73 | + end | ||
74 | + | ||
71 | end | 75 | end |
72 | 76 |