Commit f6a7c31ea0b528fb9e7d0197347e0161585e58c7

Authored by Jared Pace
1 parent d123d0a8
Exists in master and in 1 other branch production

Don't highlight vendored files in the backtrace

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/views/notices/_backtrace.html.haml
... ... @@ -8,7 +8,8 @@
8 8 %td
9 9 %ul.lines
10 10 - lines.each do |line|
11   - %li{:class => (line['file'].gsub!('[PROJECT_ROOT]','') ? 'in-project' : nil)}
  11 + - in_project = line['file'].gsub!('[PROJECT_ROOT]','') && !line['file'].match(/^\/vendor\//)
  12 + %li{:class => (in_project ? 'in-project' : nil)}
12 13 = line['file']
13 14 →
14 15 %strong= line['method']
15 16 \ No newline at end of file
... ...