File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
lib/jsonapi/authorization Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
gem (
5
5
'jsonapi-resources' ,
6
6
git : 'https://github.com/cerebris/jsonapi-resources.git' ,
7
- branch : 'track_join_options '
7
+ branch : 'use_records_for_joined_resources '
8
8
)
9
9
10
10
gemspec
Original file line number Diff line number Diff line change @@ -10,18 +10,6 @@ def records(options = {})
10
10
user_context = JSONAPI ::Authorization . configuration . user_context ( options [ :context ] )
11
11
::Pundit . policy_scope! ( user_context , super )
12
12
end
13
-
14
- def apply_joins ( records , join_manager , options )
15
- records = super
16
- join_manager . join_details . each do |k , v |
17
- next if k == '' || v [ :join_type ] == :root
18
- v [ :join_options ] [ :relationship_details ] [ :resource_klasses ] . each_key do |klass |
19
- next unless klass . included_modules . include? ( PunditScopedResource )
20
- records = records . where ( v [ :alias ] => { klass . _primary_key => klass . records ( options ) } )
21
- end
22
- end
23
- records
24
- end
25
13
end
26
14
end
27
15
end
You can’t perform that action at this time.
0 commit comments