Fix 500 error in Ruby 1.9.
This commit is contained in:
parent
da34e008c3
commit
208ec627c3
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
%div.highlighted-data{class: user_color_scheme_class}
|
||||
.line-numbers
|
||||
- blob.data.lines.size.times do |index|
|
||||
- blob.data.lines.to_a.size.times do |index|
|
||||
- offset = defined?(first_line_number) ? first_line_number : 1
|
||||
- i = index + offset
|
||||
= link_to "#L#{i}", id: "L#{i}", rel: "#L#{i}" do
|
||||
|
|
Loading…
Reference in a new issue