Class: Pragma::Operation::Show

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

Overview

Finds the requested record, authorizes it and decorates it.

Author:

  • Alessandro Desantis

Instance Method Summary collapse

Instance Method Details

#respond!(options) ⇒ Object



15
16
17
# File 'lib/pragma/operation/show.rb', line 15

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