diff options
author | Sean McGivern <sean@gitlab.com> | 2016-07-06 20:35:55 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-07-08 15:54:09 +0300 |
commit | ea1827c9a491de719be6a084fc092b88b1f54600 (patch) | |
tree | a1501eb5d9b53734e655e0636e37b76dd4faee27 /app/helpers/diff_helper.rb | |
parent | ff55398aafa2feccaba4ed470becabc526b4df48 (diff) |
Make expand_all param more explicit
Diffstat (limited to 'app/helpers/diff_helper.rb')
-rw-r--r-- | app/helpers/diff_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/diff_helper.rb b/app/helpers/diff_helper.rb index ebfe4e27b78..04490226e50 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -8,8 +8,8 @@ module DiffHelper [marked_old_line, marked_new_line] end - def expand_all? - @expand_all || params[:expand].present? + def expand_all_diffs? + @expand_all_diffs || params[:expand_all_diffs].present? end def diff_view |