Skip to content

Commit 877dfcb

Browse files
Move changelog to the top [ci skip]
1 parent bbfddf8 commit 877dfcb

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

activerecord/CHANGELOG.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
## Rails 4.0.0 (unreleased) ##
22

3+
* Fix associations with `:inverse_of` option when building association
4+
with a block. Inside the block the parent object was different then
5+
after the block.
6+
7+
Example:
8+
9+
parent.association.build do |child|
10+
child.parent.equal?(parent) # false
11+
end
12+
13+
# vs
14+
15+
child = parent.association.build
16+
child.parent.equal?(parent) # true
17+
18+
*Michal Cichra*
19+
320
* `has_many` using `:through` now obeys the order clause mentioned in
421
through association. Fixes #10016.
522

@@ -418,23 +435,6 @@
418435
# This will expand the order :name to "authors".name.
419436
Author.joins(:books).where('books.published = 1').order(:name)
420437

421-
* Fix associations with `:inverse_of` option when building association
422-
with a block. Inside the block the parent object was different then
423-
after the block.
424-
425-
Example:
426-
427-
parent.association.build do |child|
428-
child.parent.equal?(parent) # false
429-
end
430-
431-
# vs
432-
433-
child = parent.association.build
434-
child.parent.equal?(parent) # true
435-
436-
*Michal Cichra*
437-
438438

439439
## Rails 4.0.0.beta1 (February 25, 2013) ##
440440

0 commit comments

Comments
 (0)