diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-04 11:45:21 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-04-26 14:01:40 -0500 |
commit | 64c2d9bd3ce5c3151dd14be01916a4a72a4abc55 (patch) | |
tree | 054f8558b639e67c92793818e108f9605332ccf3 | |
parent | 473591403197c0b0fd985f4f01d59e6e31b57a60 (diff) | |
download | gitlab-ce-64c2d9bd3ce5c3151dd14be01916a4a72a4abc55.tar.gz |
Use new method hide_whitespaces?
-rw-r--r-- | app/helpers/diff_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb index eca4ba695a1..2f80dc5ccc0 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -23,7 +23,7 @@ module DiffHelper end def diff_options - options = { ignore_whitespace_change: params[:w] == '1' } + options = { ignore_whitespace_change: hide_whitespaces? } if diff_hard_limit_enabled? options.merge!(Commit.max_diff_options) end |