diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-02-19 16:32:29 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-02-19 16:32:29 -0500 |
commit | 27a0310f2301422d72cb50f17ded629171962c32 (patch) | |
tree | a0fea194f7a9e3abce59841e7fae4bbcd8a25ec8 /app/helpers | |
parent | ebceae3ead42d3558ac5a4b2ec36c06fb065ce93 (diff) | |
download | gitlab-ce-27a0310f2301422d72cb50f17ded629171962c32.tar.gz |
Make diff view name getter less error prone
Diffstat (limited to 'app/helpers')
-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 6a3ab3ea40a..cea18e7c082 100644 --- a/app/helpers/diff_helper.rb +++ b/app/helpers/diff_helper.rb @@ -137,7 +137,7 @@ module DiffHelper # Always use HTML to handle case where JSON diff rendered this button params_copy.delete(:format) - link_to url_for(params_copy), id: "#{name}-diff-btn", class: (selected ? 'btn active' : 'btn') do + link_to url_for(params_copy), id: "#{name}-diff-btn", class: (selected ? 'btn active' : 'btn'), data: {view_type: name} do title end end |