Commit 208ec627c323b86824dd5443c507a69e531d20b3
1 parent
da34e008
Exists in
spb-stable
and in
3 other branches
Fix 500 error in Ruby 1.9.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/shared/_file_hljs.html.haml
1 | 1 | %div.highlighted-data{class: user_color_scheme_class} |
2 | 2 | .line-numbers |
3 | - - blob.data.lines.size.times do |index| | |
3 | + - blob.data.lines.to_a.size.times do |index| | |
4 | 4 | - offset = defined?(first_line_number) ? first_line_number : 1 |
5 | 5 | - i = index + offset |
6 | 6 | = link_to "#L#{i}", id: "L#{i}", rel: "#L#{i}" do | ... | ... |