Use new method hide_whitespaces?

This commit is contained in:
Alfredo Sumaran 2016-04-04 11:45:21 -05:00
parent 4735914031
commit 64c2d9bd3c

View file

@ -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