diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-01-12 15:12:30 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-01-12 15:12:30 -0500 |
commit | c0385488fbfaf1285122793cea417e607c8e771e (patch) | |
tree | a53bc14402b674312ea059b90eaeadbe22f3320d | |
parent | f1f9b5f7d388c6d7a0938229c9211beddb2fd6a2 (diff) | |
download | gitlab-ce-c0385488fbfaf1285122793cea417e607c8e771e.tar.gz |
Fix broken spec. #3945
-rw-r--r-- | app/helpers/diff_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb index 28c8e58b2ad..0ec532a9a90 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -113,7 +113,8 @@ module DiffHelper if line.blank? " ".html_safe else - line.try(:html_safe) + # Return line if it isn't a String, it helps when it's Numeric + line.is_a?(String) ? line.html_safe : line end end |