aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/locale/en.yml
diff options
context:
space:
mode:
authorRoberto Vasquez Angel <robotex@robotex.de>2012-07-25 17:07:05 +0200
committerSteve Klabnik <steve@steveklabnik.com>2012-12-15 16:27:44 -0500
commitd72a07f1d1478db9daed847eadb35bfd840674f6 (patch)
treea48970e3b40c23c23e52249f2a7a61f85fcf94d1 /activemodel/lib/active_model/locale/en.yml
parentc298ee403d60db6b082539c8dd4f95754034274d (diff)
downloadrails-d72a07f1d1478db9daed847eadb35bfd840674f6.tar.gz
rails-d72a07f1d1478db9daed847eadb35bfd840674f6.tar.bz2
rails-d72a07f1d1478db9daed847eadb35bfd840674f6.zip
Add `ActiveModel::Validations::AbsenceValidator`, a validator to check the absence of attributes.
Add `ActiveModel::Errors#add_on_present` method. Adds error messages to present attributes.
Diffstat (limited to 'activemodel/lib/active_model/locale/en.yml')
-rw-r--r--activemodel/lib/active_model/locale/en.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model/locale/en.yml b/activemodel/lib/active_model/locale/en.yml
index d17848c861..8ea34b84f5 100644
--- a/activemodel/lib/active_model/locale/en.yml
+++ b/activemodel/lib/active_model/locale/en.yml
@@ -13,6 +13,7 @@ en:
accepted: "must be accepted"
empty: "can't be empty"
blank: "can't be blank"
+ not_blank: "must be blank"
too_long: "is too long (maximum is %{count} characters)"
too_short: "is too short (minimum is %{count} characters)"
wrong_length: "is the wrong length (should be %{count} characters)"