diff options
author | Ruben Davila <rdavila84@gmail.com> | 2017-04-13 01:03:47 -0500 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2017-04-13 01:03:47 -0500 |
commit | 73d0730d09b5f9a9b68f158cc72ad30c7a2b35d0 (patch) | |
tree | 3443759bd564dca586716c46d6dd8c74594432e7 /app/controllers/profiles_controller.rb | |
parent | 020e12a6ae99e9b9dfaa3cfbd640ecdf31d7424d (diff) | |
download | gitlab-ce-73d0730d09b5f9a9b68f158cc72ad30c7a2b35d0.tar.gz |
Set locale through controller filter
Diffstat (limited to 'app/controllers/profiles_controller.rb')
-rw-r--r-- | app/controllers/profiles_controller.rb | 1 |
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 |