Commit 4c3c771
committed
Add automatic alias tracking to ActiveRelationResourceFinder
* enables related resource filtering
* introduces JoinTree to track the required joins for a request to avoid
join collisions
* simplifies the resource finder, but there's still some room for improvement
* makes use of the rails 5 `left_join` method. For rails 4 will require
an additional gem to add the functionality. This is tested with the
`left_join` gem, though others could exist and work.1 parent 16ff808 commit 4c3c771
13 files changed
Lines changed: 596 additions & 280 deletions
File tree
- lib
- jsonapi
- active_relation_resource_finder
- test
- controllers
- fixtures
- integration/requests
- unit
- active_relation_resource_finder
- resource
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
0 commit comments