diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-12-04 13:17:21 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-12-04 18:14:34 +0300 |
commit | 84352177d454e1a8dfa952efca65558501bd9c7d (patch) | |
tree | 7813f8aae0ef1a3f83fd345b9f8bc4acc4b30fe4 /app/controllers/profiles | |
parent | 5978b98c5f50bf0a2f9ffb14d950d9a93b14ca4b (diff) |
Replace @user with current_user on Account page
Previously we used @user, but this changed to local_assigns[:user]
so we could pass a second variable to the view from an EE module
Since we were already using current_user librally there it makes sense
to replace the remaining usages.
See: https://docs.gitlab.com/ee/development/module_with_instance_variables.html
Diffstat (limited to 'app/controllers/profiles')
-rw-r--r-- | app/controllers/profiles/accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles/accounts_controller.rb b/app/controllers/profiles/accounts_controller.rb index 13660e27a27..b0d65f284af 100644 --- a/app/controllers/profiles/accounts_controller.rb +++ b/app/controllers/profiles/accounts_controller.rb @@ -27,6 +27,6 @@ class Profiles::AccountsController < Profiles::ApplicationController private def show_view_variables - { user: current_user } + {} end end |