Class: Pragma::Operation::Update

Inherits:
Base
  • Object
show all
Defined in:
lib/pragma/operation/update.rb

Overview

Finds an existing record, updates it and responds with the decorated record.

Author:

  • Alessandro Desantis

Instance Method Summary collapse

Instance Method Details

#respond!(options) ⇒ Object



18
19
20
# File 'lib/pragma/operation/update.rb', line 18

def respond!(options)
  options['result.response'] = Response::Ok.new(entity: options['result.decorator.instance'])
end