Method: JSONAPI::Processor#process
- Defined in:
- lib/jsonapi/processor.rb
#process ⇒ Object
55 56 57 58 59 60 61 62 63 64 |
# File 'lib/jsonapi/processor.rb', line 55 def process run_callbacks :operation do run_callbacks operation_type do @result = send(operation_type) end end rescue JSONAPI::Exceptions::Error => e @result = JSONAPI::ErrorsOperationResult.new(e.errors[0].code, e.errors) end |