class Pragma::Operation::Update

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

@author Alessandro Desantis

Public Instance Methods

respond!(options) click to toggle source
# File lib/pragma/operation/update.rb, line 18
def respond!(options)
  options['result.response'] = Response::Ok.new(entity: options['result.decorator.instance'])
end