aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib/active_model/locale
diff options
context:
space:
mode:
authorHenrik Nygren <nygrenh@gmail.com>2015-01-27 15:52:52 +0200
committerHenrik Nygren <nygrenh@gmail.com>2015-01-28 11:32:10 +0200
commit9a6c6c6f094ce965cc251865bdc1828bc4f38039 (patch)
tree7c25a09f8c5af36370ebb3c8bba22c670207987b /activemodel/lib/active_model/locale
parent71a84206ab4d3488ac0d522a7375efc67301aae5 (diff)
downloadrails-9a6c6c6f094ce965cc251865bdc1828bc4f38039.tar.gz
rails-9a6c6c6f094ce965cc251865bdc1828bc4f38039.tar.bz2
rails-9a6c6c6f094ce965cc251865bdc1828bc4f38039.zip
Provide a better error message on :required association
Fixes #18696.
Diffstat (limited to 'activemodel/lib/active_model/locale')
-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 bf07945fe1..b0b20ee0bf 100644
--- a/activemodel/lib/active_model/locale/en.yml
+++ b/activemodel/lib/active_model/locale/en.yml
@@ -14,6 +14,7 @@ en:
empty: "can't be empty"
blank: "can't be blank"
present: "must be blank"
+ required: "must exist"
too_long:
one: "is too long (maximum is 1 character)"
other: "is too long (maximum is %{count} characters)"