aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/CHANGELOG.md
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-01-31 14:10:23 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2015-01-31 14:10:23 -0800
commit6b4a5952d3952ffc98173626e8d76e73e6140e3a (patch)
treed7f66e9a07e32e15a33035688fc65e0b00a0cefa /activemodel/CHANGELOG.md
parentdd53c0679d307378cfd7fadc67a5c180f2a61562 (diff)
parent9a6c6c6f094ce965cc251865bdc1828bc4f38039 (diff)
downloadrails-6b4a5952d3952ffc98173626e8d76e73e6140e3a.tar.gz
rails-6b4a5952d3952ffc98173626e8d76e73e6140e3a.tar.bz2
rails-6b4a5952d3952ffc98173626e8d76e73e6140e3a.zip
Merge pull request #18700 from nygrenh/better-required-message
Provide a better error message on :required association
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 5830a00bc5..4c78fc91a5 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`