Add country code to postal code exception message

This commit is contained in:
Henrique Moody 2015-09-24 00:47:42 -03:00
commit 3fbc45d44f
4 changed files with 18 additions and 2 deletions

View file

@ -15,10 +15,10 @@ class PostalCodeException extends ValidationException
{
public static $defaultTemplates = array(
self::MODE_DEFAULT => array(
self::STANDARD => '{{name}} must be a valid postal code',
self::STANDARD => '{{name}} must be a valid postal code on {{countryCode}}',
),
self::MODE_NEGATIVE => array(
self::STANDARD => '{{name}} must not be a valid postal code',
self::STANDARD => '{{name}} must not be a valid postal code on {{countryCode}}',
),
);
}