summaryrefslogtreecommitdiff
path: root/app/helpers/diff_helper.rb
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2015-12-30 18:42:11 -0500
committerRubén Dávila <rdavila84@gmail.com>2015-12-30 18:42:11 -0500
commit7de90f4b53f865dc417d022a9133372e57274549 (patch)
tree71d5b8aa6ca6356d9e8591d0d223dca5a973511e /app/helpers/diff_helper.rb
parentb74f36c9caae38a1d62c18281d8240ec5905c5d8 (diff)
downloadgitlab-ce-7de90f4b53f865dc417d022a9133372e57274549.tar.gz
Fix broken spec and small refactor. #3945
Diffstat (limited to 'app/helpers/diff_helper.rb')
-rw-r--r--app/helpers/diff_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb
index 2ff8c65e5ca..22deb69cec5 100644
--- a/app/helpers/diff_helper.rb
+++ b/app/helpers/diff_helper.rb
@@ -56,7 +56,7 @@ module DiffHelper
#
diff_file.highlighted_diff_lines.each do |line|
- full_line = line.highlighted_text
+ full_line = line.text
type = line.type
line_code = generate_line_code(diff_file.file_path, line)
line_new = line.new_pos
@@ -67,7 +67,7 @@ module DiffHelper
if next_line
next_line_code = generate_line_code(diff_file.file_path, next_line)
next_type = next_line.type
- next_line = next_line.highlighted_text
+ next_line = next_line.text
end
if type == 'match' || type.nil?