Commit 5aeae33
authored
Update `load_async` to return `self` instead of the explicit
`ActiveRecord::Relation[Model]`.
While both represent the same runtime object, RBS treats them as
distinct types from `Model::ActiveRecord_Relation` (returned by
methods like `where` or `all`). This discrepancy causes type
mismatches and forces unnecessary type distinctions during method
chaining or when defining signatures. Changing it to `self` ensures
consistency with other relation methods.
1 parent 2d01126 commit 5aeae33
File tree
2 files changed
+2
-2
lines changed- gems/activerecord
- 7.2
- 8.0
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments