From d72a07f1d1478db9daed847eadb35bfd840674f6 Mon Sep 17 00:00:00 2001 From: Roberto Vasquez Angel Date: Wed, 25 Jul 2012 17:07:05 +0200 Subject: 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. --- activemodel/lib/active_model/locale/en.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'activemodel/lib/active_model/locale/en.yml') 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)" -- cgit v1.2.3