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:
authorRuben Davila <rdavila84@gmail.com>2017-04-13 09:03:47 +0300
committerRuben Davila <rdavila84@gmail.com>2017-04-13 09:03:47 +0300
commit73d0730d09b5f9a9b68f158cc72ad30c7a2b35d0 (patch)
tree3443759bd564dca586716c46d6dd8c74594432e7 /app/controllers/profiles_controller.rb
parent020e12a6ae99e9b9dfaa3cfbd640ecdf31d7424d (diff)
Set locale through controller filter
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r--app/controllers/profiles_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb
index 57e23cea00e..0f01bf7e706 100644
--- a/app/controllers/profiles_controller.rb
+++ b/app/controllers/profiles_controller.rb
@@ -3,6 +3,7 @@ class ProfilesController < Profiles::ApplicationController
before_action :user
before_action :authorize_change_username!, only: :update_username
+ before_action :set_locale, only: :show
skip_before_action :require_email, only: [:show, :update]
def show