diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-11 13:52:49 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-11 13:52:49 +0200 |
commit | 0b0ba8be7f09b1664a6875be7d5736ebf7f62977 (patch) | |
tree | 50b21629a076dc125ea89ff5e437332986f799e0 | |
parent | 441e6dcf0d4d09a713ae6bc7bb47eddc76ad9f48 (diff) | |
parent | 208ec627c323b86824dd5443c507a69e531d20b3 (diff) | |
download | gitlab-ce-0b0ba8be7f09b1664a6875be7d5736ebf7f62977.tar.gz |
Merge pull request #6249 from babatakao/fix_500_in_ruby19
Fix 500 error in Ruby 1.9.
-rw-r--r-- | app/views/shared/_file_hljs.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_file_hljs.html.haml b/app/views/shared/_file_hljs.html.haml index 166a13bd76c..338236c0752 100644 --- a/app/views/shared/_file_hljs.html.haml +++ b/app/views/shared/_file_hljs.html.haml @@ -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 |