Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Edwards-Jones <jedwardsjones@gitlab.com>2018-12-04 13:17:21 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2018-12-04 18:14:34 +0300
commit84352177d454e1a8dfa952efca65558501bd9c7d (patch)
tree7813f8aae0ef1a3f83fd345b9f8bc4acc4b30fe4 /app/controllers/profiles
parent5978b98c5f50bf0a2f9ffb14d950d9a93b14ca4b (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.rb2
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