aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-29 10:09:42 -0800
committerJon Leighton <j@jonathanleighton.com>2011-11-29 10:09:42 -0800
commit2169603385a447256d713873be6b2fbb6e2591fa (patch)
tree8a56b9264808c0e7b0cba8fc895e364a75c3bc05 /activerecord/CHANGELOG.md
parentd534c8fbe26dbc1101d80ad3af4cf166d0e3cda8 (diff)
parentc347b3c06c2867badce5e22ecfbed3e972960c29 (diff)
downloadrails-2169603385a447256d713873be6b2fbb6e2591fa.tar.gz
rails-2169603385a447256d713873be6b2fbb6e2591fa.tar.bz2
rails-2169603385a447256d713873be6b2fbb6e2591fa.zip
Merge pull request #3636 from joshsusser/master
association methods are now generated in modules
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index c50229e779..6fbcfb4c14 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,5 +1,11 @@
## Rails 3.2.0 (unreleased) ##
+* Generated association methods are created within a separate module to allow overriding and
+ composition using `super`. For a class named `MyModel`, the module is named
+ `MyModel::GeneratedFeatureMethods`. It is included into the model class immediately after
+ the `generated_attributes_methods` module defined in ActiveModel, so association methods
+ override attribute methods of the same name. *Josh Susser*
+
* Implemented ActiveRecord::Relation#explain. *fxn*
* Add ActiveRecord::Relation#uniq for generating unique queries.