From 0f80bcef144583254a2949b05d31c7ca70a6f9bb Mon Sep 17 00:00:00 2001 From: Dominik Kwiatek Date: Fri, 23 Oct 2020 21:01:00 +0200 Subject: [PATCH] Remove I18n. prefix --- app/controllers/user_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 3caed751..544ede5f 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -190,7 +190,7 @@ class UserController < ApplicationController current_user.otp_module = :enabled if current_user.authenticate_otp(req_params[:otp_validation]) - flash[:success] = I18n.t('views.auth.2fa.setup.success') + flash[:success] = t('views.auth.2fa.setup.success') current_user.save! else flash[:error] = t('views.auth.2fa.errors.invalid_code')