aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorwangjohn <wangjohn@mit.edu>2013-03-19 16:33:49 -0400
committerwangjohn <wangjohn@mit.edu>2013-03-19 16:33:49 -0400
commit840ca09a1151fafe1cb3299f12437378d25f2ce5 (patch)
tree95b740f525c3303b5b5938f4dd58dffdd8fa05fa /activerecord/CHANGELOG.md
parenta6c5ee3032c50720760f7a4c895206b4205836c0 (diff)
downloadrails-840ca09a1151fafe1cb3299f12437378d25f2ce5.tar.gz
rails-840ca09a1151fafe1cb3299f12437378d25f2ce5.tar.bz2
rails-840ca09a1151fafe1cb3299f12437378d25f2ce5.zip
Calling find() on an association with an inverse will now check to see
if the association already holds that record in memory before checking the database for the specified ids.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index e5ab6bac58..79247e3028 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,15 @@
## Rails 4.0.0 (unreleased) ##
+* If inverse_of is true on an association, then when one calls +find()+ on
+ the association, ActiveRecord will first look through the in-memory objects
+ in the association for a particular id. Then, it will go to the DB if it
+ is not found. This is accomplished by calling +find_by_scan+ in
+ collection associations whenever +options[:inverse_of]+ is not nil.
+
+ Fixes #9470.
+
+ *John Wang*
+
* `rake db:create` does not change permissions of the MySQL root user.
Fixes #8079.