aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-09-12 14:04:11 -0700
committerJon Leighton <j@jonathanleighton.com>2012-09-12 14:04:11 -0700
commitb5aed34c442550c4caad1fdca12c921d5ab9840f (patch)
treee19d1e7147070f25fcd18754211913552f99dde1 /activerecord/CHANGELOG.md
parent0f228b420e26584e26702935135a4b099df85696 (diff)
parent3da275c4396d7fad250d2b786027ba4f14344bd4 (diff)
downloadrails-b5aed34c442550c4caad1fdca12c921d5ab9840f.tar.gz
rails-b5aed34c442550c4caad1fdca12c921d5ab9840f.tar.bz2
rails-b5aed34c442550c4caad1fdca12c921d5ab9840f.zip
Merge pull request #7273 from beerlington/foreign_key_model_queries
Convert model name to foreign key in queries
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index e94db776a5..818b69b6b8 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,17 @@
## Rails 4.0.0 (unreleased) ##
+* Accept belongs_to (including polymorphic) association keys in queries
+
+ The following queries are now equivalent:
+
+ Post.where(:author => author)
+ Post.where(:author_id => author)
+
+ PriceEstimate.where(:estimate_of => treasure)
+ PriceEstimate.where(:estimate_of_type => 'Treasure', :estimate_of_id => treasure)
+
+ *Peter Brown*
+
* Use native `mysqldump` command instead of `structure_dump` method
when dumping the database structure to a sql file. Fixes #5547.