mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Remove double call to set_locale
This commit is contained in:
parent
e6a6a74882
commit
84f5bb5ac0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user