Method: Caprese::Adapter::JsonApi::Error.document_errors
- Defined in:
- lib/caprese/adapter/json_api/error.rb
.document_errors(error_serializer, options) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/caprese/adapter/json_api/error.rb', line 21 def self.document_errors(error_serializer, ) error_attributes = error_serializer.as_json [ { code: error_attributes[:code], detail: error_attributes[:message], source: error_source(:pointer, nil, error_attributes[:field]) } ] end |