Commit 998f4d5
authored
MONGOID-5034 When excluded from query, embeds many relations are returned as empty array instead of raising MissingAttributeError (#5196)
* MONGOID-5034 add test and potential implementation
* MONGOID-5034 add embedded condition with comment
* MONGOID-5034 only raise when not binding
* MONGOID-5034 update comments
* MONGOID-5034 dont raise during without_autobuild
* MONGOID-5034 update comments1 parent b23e999 commit 998f4d5
File tree
2 files changed
+25
-0
lines changed- lib/mongoid/association
- spec/mongoid/association/embedded
2 files changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
108 | 121 | | |
109 | 122 | | |
110 | 123 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
50 | 62 | | |
51 | 63 | | |
0 commit comments