Moves translations from one namespace to another

This commit is contained in:
kikito
2015-10-07 19:43:34 +02:00
parent d5d5e683d1
commit 131982c8e9
3 changed files with 7 additions and 2 deletions

View File

@@ -45,10 +45,10 @@ class Verification::Management::Email
return if errors.count > 0
errors.add(:email, I18n.t('errors.messages.user_not_found')) unless user?
if already_verified?
errors.add(:email, I18n.t('management.users.already_verified'))
errors.add(:email, I18n.t('management.email_verifications.already_verified'))
elsif document_number_mismatch?
errors.add(:email,
I18n.t('management.users.document_mismatch',
I18n.t('management.email_verifications.document_mismatch',
document_type: ApplicationController.helpers.humanize_document_type(user.document_type),
document_number: user.document_number))
end