Skip to content

Commit 38757c6

Browse files
authored
Merge pull request #1069 from kevintraver/fix/invalid-filter-error-message
Use original key format when displaying error for filter not allowed
2 parents 31b305e + dd436db commit 38757c6

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
@@ -393,7 +393,7 @@ def parse_filters(resource_klass, filters)
393393
if resource_klass._allowed_filter?(filter)
394394
parsed_filters[filter] = value
395395
else
396-
fail JSONAPI::Exceptions::FilterNotAllowed.new(filter)
396+
fail JSONAPI::Exceptions::FilterNotAllowed.new(key)
397397
end
398398
end
399399

0 commit comments

Comments
 (0)