diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-05 10:01:38 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-05 10:01:38 -0300 |
commit | 877dfcbb6437acfd56c7ead4f9998b5b0bf82c0e (patch) | |
tree | 1f429a7ff4184dbe3a0295bf59b3e546f3f07c17 /activerecord | |
parent | bbfddf8470fcea21f31b285f6d1ef1bb723e07e1 (diff) | |
download | rails-877dfcbb6437acfd56c7ead4f9998b5b0bf82c0e.tar.gz rails-877dfcbb6437acfd56c7ead4f9998b5b0bf82c0e.tar.bz2 rails-877dfcbb6437acfd56c7ead4f9998b5b0bf82c0e.zip |
Move changelog to the top [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index db9aa858c2..e1d3686b95 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,22 @@ ## Rails 4.0.0 (unreleased) ## +* Fix associations with `:inverse_of` option when building association + with a block. Inside the block the parent object was different then + after the block. + + Example: + + parent.association.build do |child| + child.parent.equal?(parent) # false + end + + # vs + + child = parent.association.build + child.parent.equal?(parent) # true + + *Michal Cichra* + * `has_many` using `:through` now obeys the order clause mentioned in through association. Fixes #10016. @@ -418,23 +435,6 @@ # This will expand the order :name to "authors".name. Author.joins(:books).where('books.published = 1').order(:name) -* Fix associations with `:inverse_of` option when building association - with a block. Inside the block the parent object was different then - after the block. - - Example: - - parent.association.build do |child| - child.parent.equal?(parent) # false - end - - # vs - - child = parent.association.build - child.parent.equal?(parent) # true - - *Michal Cichra* - ## Rails 4.0.0.beta1 (February 25, 2013) ## |