aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-12 20:53:05 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-09-12 20:53:05 -0300
commit33ae757376f6d97f5580bfa6f03ce8da09d7780a (patch)
tree56c7b9ce9599149f4cd8a0eaaea968e338b8dbca /activerecord/CHANGELOG.md
parente1154a694d861abbcc1f8f1c8d557d2e349ba9c2 (diff)
parent8875e28a50b117aa862c8563c49f7e3a6ee7deff (diff)
downloadrails-33ae757376f6d97f5580bfa6f03ce8da09d7780a.tar.gz
rails-33ae757376f6d97f5580bfa6f03ce8da09d7780a.tar.bz2
rails-33ae757376f6d97f5580bfa6f03ce8da09d7780a.zip
Merge pull request #12137 from lann/fix_association_first_last
Make CollectionAssociation first/last with integer fetch with query Conflicts: activerecord/CHANGELOG.md
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index fd06dc4862..05fc079033 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,3 +1,8 @@
+* `CollectionAssociation#first`/`#last` (e.g. `has_many`) use a `LIMIT`ed
+ query to fetch results rather than loading the entire collection.
+
+ *Lann Martin*
+
* Make possible to run SQLite rake tasks without the `Rails` constant defined.
*Damien Mathieu*