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

@@ -41,7 +41,7 @@ class ApplicationController < ActionController::Base
def verify_lock
if current_user.locked?
redirect_to account_path, alert: t('verification.alert.lock')
redirect_to account_path, alert: t("verification.alert.lock")
end
end
@@ -94,13 +94,13 @@ class ApplicationController < ActionController::Base
def verify_resident!
unless current_user.residence_verified?
redirect_to new_residence_path, alert: t('verification.residence.alert.unconfirmed_residency')
redirect_to new_residence_path, alert: t("verification.residence.alert.unconfirmed_residency")
end
end
def verify_verified!
if current_user.level_three_verified?
redirect_to(account_path, notice: t('verification.redirect_notices.already_verified'))
redirect_to(account_path, notice: t("verification.redirect_notices.already_verified"))
end
end
@@ -112,7 +112,7 @@ class ApplicationController < ActionController::Base
end
def set_return_url
if !devise_controller? && controller_name != 'welcome' && is_navigational_format?
if !devise_controller? && controller_name != "welcome" && is_navigational_format?
store_location_for(:user, request.path)
end
end