Fix 500 error in Ruby 1.9.

This commit is contained in:
Takao Baba 2014-02-05 14:43:20 +09:00
parent da34e008c3
commit 208ec627c3

View file

@ -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