aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-11-25 00:48:00 +1030
committerGitHub <noreply@github.com>2016-11-25 00:48:00 +1030
commit33039fa7239afdde963fe651637226a7dca4b85b (patch)
tree8f27dc90159f788c19c01bdcea2b397753d57836 /activerecord/CHANGELOG.md
parent2f73982c215b6573bfa59e5a89471aedbd7c211a (diff)
parent935502062e647def60288944808240667f7893cc (diff)
downloadrails-33039fa7239afdde963fe651637226a7dca4b85b.tar.gz
rails-33039fa7239afdde963fe651637226a7dca4b85b.tar.bz2
rails-33039fa7239afdde963fe651637226a7dca4b85b.zip
Merge pull request #26718 from domcleal/5-0-stable-ids-writer-exception
Restore RecordNotFound when *_ids= can't find records by ID
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 0b9a2f9943..35f7c158a6 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,12 @@
+* Raise ActiveRecord::RecordNotFound from collection `*_ids` setters
+ for unknown IDs with a better error message.
+
+ Changes the collection `*_ids` setters to cast provided IDs the data
+ type of the primary key set in the association, not the model
+ primary key.
+
+ *Dominic Cleal*
+
* For PostgreSQL >= 9.4 use `pgcrypto`'s `gen_random_uuid()` instead of
`uuid-ossp`'s UUID generation function.