diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2015-03-15 16:13:54 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2015-03-15 17:29:05 -0700 |
commit | c82cc222c793275f74fc5e8b6aa88edebe136929 (patch) | |
tree | 09c55c8d3078f9f0e8ea22cd4d65d42d40a39b70 /activerecord/CHANGELOG.md | |
parent | a5a4b56029f1a83cfc81852f8ca76f9161abcbaa (diff) | |
download | rails-c82cc222c793275f74fc5e8b6aa88edebe136929.tar.gz rails-c82cc222c793275f74fc5e8b6aa88edebe136929.tar.bz2 rails-c82cc222c793275f74fc5e8b6aa88edebe136929.zip |
Reuse the CollectionAssociation#reader proxy cache if the foreign key is present from the start.
When a new record has the necessary information prior to save, we can
avoid busting the cache.
We could simply clear the @proxy on #reset or #reset_scope, but that
would clear the cache more often than necessary.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index a011579124..b6e74cdbbc 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,8 @@ +* Reuse the `CollectionAssociation#reader` cache when the foreign key is + available prior to save. + + *Ben Woosley* + * Increase pg gem version requirement to `~> 0.18`. Earlier versions of the pg gem are known to have problems with Ruby 2.2. |