Commit 854e1cbb0891f295870341f9ff568c1d5518e47a
1 parent
a0b674b9
Exists in
master
and in
1 other branch
Use read_attribute to modify backtrace
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/notice.rb
... | ... | @@ -129,7 +129,7 @@ class Notice |
129 | 129 | send("#{h}=",sanitize_hash(send(h))) |
130 | 130 | end |
131 | 131 | # Set unknown backtrace files |
132 | - backtrace.each{|line| line['file'] = "[unknown source]" if line['file'].blank? } | |
132 | + read_attribute(:backtrace).each{|line| line['file'] = "[unknown source]" if line['file'].blank? } | |
133 | 133 | end |
134 | 134 | |
135 | 135 | def sanitize_hash(h) | ... | ... |