diff options
author | Ruben Davila <rdavila84@gmail.com> | 2016-08-18 15:33:27 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2016-08-18 15:33:27 +0300 |
commit | 22ce76d447407024d9bd58eedce6c166eb7b6eb2 (patch) | |
tree | e4859077bb96e4fc2f29f5022ebbadbb7fe6e6d3 /app/controllers/projects/application_controller.rb | |
parent | bac19f4c5c62218f7c59894957548a25b03f69d5 (diff) |
Refactor to mark Changes tab as active on new MR page.
Diffstat (limited to 'app/controllers/projects/application_controller.rb')
-rw-r--r-- | app/controllers/projects/application_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb index 996909a28c6..91315a07deb 100644 --- a/app/controllers/projects/application_controller.rb +++ b/app/controllers/projects/application_controller.rb @@ -83,6 +83,7 @@ class Projects::ApplicationController < ApplicationController end def apply_diff_view_cookie! + @show_changes_tab = params[:view].present? cookies.permanent[:diff_view] = params.delete(:view) if params[:view].present? end |