Use double quotes in controllers/

This commit is contained in:
Julian Herrero
2019-03-13 22:19:49 +01:00
parent 3c313c9c52
commit d24376f6ad
78 changed files with 236 additions and 236 deletions

View File

@@ -14,7 +14,7 @@ class Verification::SmsController < ApplicationController
def create
@sms = Verification::Sms.new(phone: @phone, user: current_user)
if @sms.save
redirect_to edit_sms_path, notice: t('verification.sms.create.flash.success')
redirect_to edit_sms_path, notice: t("verification.sms.create.flash.success")
else
render :new
end
@@ -36,7 +36,7 @@ class Verification::SmsController < ApplicationController
redirect_to_next_path
else
@error = t('verification.sms.update.error')
@error = t("verification.sms.update.error")
render :edit
end
end
@@ -63,9 +63,9 @@ class Verification::SmsController < ApplicationController
def redirect_to_next_path
current_user.reload
if current_user.level_three_verified?
redirect_to account_path, notice: t('verification.sms.update.flash.level_three.success')
redirect_to account_path, notice: t("verification.sms.update.flash.level_three.success")
else
redirect_to new_letter_path, notice: t('verification.sms.update.flash.level_two.success')
redirect_to new_letter_path, notice: t("verification.sms.update.flash.level_two.success")
end
end