File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 1
1
## Rails 4.0.0 (unreleased) ##
2
2
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
+
3
20
* ` has_many ` using ` :through ` now obeys the order clause mentioned in
4
21
through association. Fixes #10016 .
5
22
418
435
# This will expand the order :name to "authors".name.
419
436
Author.joins(:books).where('books.published = 1').order(:name)
420
437
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
-
438
438
439
439
## Rails 4.0.0.beta1 (February 25, 2013) ##
440
440
You can’t perform that action at this time.
0 commit comments