Skip to content

Commit 759be4b

Browse files
authored
Merge pull request #1341 from gigorok/patch-1
fix filtering by included resource
2 parents 8fcee36 + 2096eaa commit 759be4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonapi/request_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def parse_relationship_filter(key, value)
291291
return @errors.concat(Exceptions::FilterNotAllowed.new(filter_method).errors)
292292
end
293293

294-
verified_filter = relationship.resource_klass.verify_filters(filter_method => value)
294+
verified_filter = relationship.resource_klass.verify_filters({ filter_method => value }, @context)
295295
@include_directives.merge_filter(relationship.name, verified_filter)
296296
else
297297
return @errors.concat(Exceptions::FilterNotAllowed.new(filter_method).errors)

0 commit comments

Comments
 (0)