adds i18n to residence document error
This commit is contained in:
committed by
Juanjo Bazán
parent
17af8f48c8
commit
fe9241c81b
@@ -30,7 +30,7 @@ class Verification::Residence
|
||||
end
|
||||
|
||||
def document_number_uniqueness
|
||||
errors.add(:document_number, "Already in use") if User.where(document_number: document_number).any?
|
||||
errors.add(:document_number, I18n.t('errors.messages.taken')) if User.where(document_number: document_number).any?
|
||||
end
|
||||
|
||||
def residence_in_madrid
|
||||
|
||||
Reference in New Issue
Block a user