Remove double call to set_locale

This commit is contained in:
Matt Jankowski 2025-08-27 14:15:39 -04:00
parent e6a6a74882
commit 84f5bb5ac0

View File

@ -135,10 +135,8 @@ class Auth::RegistrationsController < Devise::RegistrationsController
@accept_token = session[:accept_token] = SecureRandom.hex
@invite_code = invite_code
set_locale do
@rule_translations = @rules.map { |rule| rule.translation_for(I18n.locale) }
render :rules
end
@rule_translations = @rules.map { |rule| rule.translation_for(I18n.locale) }
render :rules
end
def is_flashing_format? # rubocop:disable Naming/PredicatePrefix