File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
1919 spec . executables = spec . files . grep ( %r{^exe/} ) { |f | File . basename ( f ) }
2020 spec . require_paths = [ 'lib' ]
2121
22- spec . add_runtime_dependency 'jsonapi-resources' , '0.9.0 '
22+ spec . add_runtime_dependency 'jsonapi-resources' , '0.9.6 '
2323
2424 spec . add_development_dependency 'bundler' , '~> 1.10'
2525 spec . add_development_dependency 'rake' , '~> 10.0'
Original file line number Diff line number Diff line change @@ -6,6 +6,11 @@ module Request
66 def jsonapi_request_handling
77 setup_request
88 check_request
9+ rescue JSONAPI ::Exceptions ::InvalidResource ,
10+ JSONAPI ::Exceptions ::InvalidField ,
11+ JSONAPI ::Exceptions ::InvalidInclude ,
12+ JSONAPI ::Exceptions ::InvalidSortCriteria => err
13+ jsonapi_render_errors ( json : err )
914 end
1015
1116 # Instantiate the request object.
You can’t perform that action at this time.
0 commit comments