aboutsummaryrefslogblamecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/rescues/_source.text.erb
blob: 23a9c7ba3f819093db87ad795d7c996412a79e14 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                               
<% @source_extracts.first(3).each do |source_extract| %>
<% if source_extract[:code] %>
Extracted source (around line #<%= source_extract[:line_number] %>):

<% source_extract[:code].each do |line, source| -%>
<%= line == source_extract[:line_number] ? "*#{line}" : "##{line}" -%> <%= source -%><% end -%>
<% end %>
<% end %>