Method: JSONAPI::Exceptions::InvalidResource#errors
- Defined in:
- lib/jsonapi/exceptions.rb
#errors ⇒ Object
26 27 28 29 30 31 |
# File 'lib/jsonapi/exceptions.rb', line 26 def errors [JSONAPI::Error.new(code: JSONAPI::INVALID_RESOURCE, status: :bad_request, title: 'Invalid resource', detail: "#{resource} is not a valid resource.")] end |