Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (forename.blank? && FIELD_FIRSTNAME_MANDATORY)
- errors.add(:forename, _("^can't be blank"))
- else
- unless forename.blank?
- errors.add(:forename, _("is too long (maximum is 128 characters)")) if forename.length > 128
- end
- end
Add Comment
Please, Sign In to add comment