Commit e7c6ae0
authored
Fix relation_name lambda being broken (#81)
* Fix context not being passed properly in PunditScopedResource
* Always pass a hash with :context key to relation_name accessor
This seems to be the way jsonapi-resources does it. Although, at some
points JR passes way more information down the chain. Unfortunately,
that same information is not available in PunditScopedResource so I'll
just go with what we can get in all the places.
https://github.com/cerebris/jsonapi-resources/blob/5af1f17068b66b0a17b7b69e5db334c640f6f34b/lib/jsonapi/processor.rb#L170-L1841 parent 24bfed7 commit e7c6ae0
File tree
2 files changed
+3
-3
lines changed- lib/jsonapi/authorization
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
| 367 | + | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments