Skip to content

Commit

Permalink
fix locale was not set until terms acceptance, so the locale selected…
Browse files Browse the repository at this point in the history
… by the user was lost (#712)
  • Loading branch information
nflorentin authored Nov 23, 2023
1 parent d85df1d commit b44d559
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ class ApplicationController < ActionController::Base
MissingTOSAcceptance = Class.new(Exception)
OutadedTOSAcceptance = Class.new(Exception)

append_before_action :check_for_terms_acceptance!, unless: :devise_controller?
before_action :set_locale
before_action :check_for_terms_acceptance!, unless: :devise_controller?
before_action :configure_permitted_parameters, if: :devise_controller?
before_action :set_locale,
:set_current_organization,
before_action :set_current_organization,
:store_user_location

rescue_from MissingTOSAcceptance, OutadedTOSAcceptance do
Expand Down

0 comments on commit b44d559

Please sign in to comment.