class Pragma::Operation::Create

Creates a new record and responds with the decorated record.

@author Alessandro Desantis

Public Instance Methods

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