aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
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/CHANGELOG.md
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/CHANGELOG.md')
-rw-r--r--activemodel/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activemodel/CHANGELOG.md b/activemodel/CHANGELOG.md
index 77386e5e41..ca1018d399 100644
--- a/activemodel/CHANGELOG.md
+++ b/activemodel/CHANGELOG.md
@@ -1,3 +1,8 @@
+* Change the default error message from `can't be blank` to `must exist` for
+ the presence validator of the `:required` option on `belongs_to`/`has_one` associations.
+
+ *Henrik Nygren*
+
* Assigning an unknown attribute key to an `ActiveModel` instance during initialization
will now raise `ActiveModel::AttributeAssignment::UnknownAttributeError` instead of
`NoMethodError`