Method: Caprese::Adapter::JsonApi::Error.param_errors
- Defined in:
- lib/caprese/adapter/json_api/error.rb
.param_errors(error_serializer, options) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/caprese/adapter/json_api/error.rb', line 10 def self.param_errors(error_serializer, ) error_attributes = error_serializer.as_json [ { code: error_attributes[:code], detail: error_attributes[:message], source: error_source(:parameter, nil, error_attributes[:field]) } ] end |