Commit 854e1cbb0891f295870341f9ff568c1d5518e47a

Authored by Nathan Broadbent
1 parent a0b674b9
Exists in master and in 1 other branch production

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,7 +129,7 @@ class Notice
129 send("#{h}=",sanitize_hash(send(h))) 129 send("#{h}=",sanitize_hash(send(h)))
130 end 130 end
131 # Set unknown backtrace files 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 end 133 end
134 134
135 def sanitize_hash(h) 135 def sanitize_hash(h)