Commit 70c06f1fe037c1353f8f7eb5f344c4e7b1225264

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

Empty backtrace should be an Array, not Hash

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/notice.rb
... ... @@ -96,7 +96,7 @@ class Notice
96 96  
97 97 def backtrace
98 98 # If gems are vendored into project, treat vendored gem dir as [GEM_ROOT]
99   - (read_attribute(:backtrace) || {}).map do |line|
  99 + (read_attribute(:backtrace) || []).map do |line|
100 100 # Changes "[PROJECT_ROOT]/rubygems/ruby/1.9.1/gems" to "[GEM_ROOT]/gems"
101 101 line.merge 'file' => line['file'].gsub(/\[PROJECT_ROOT\]\/.*\/ruby\/[0-9.]+\/gems/, '[GEM_ROOT]/gems')
102 102 end
... ...