lib/pragma/operation/show.rb in pragma-2.1.1 vs lib/pragma/operation/show.rb in pragma-2.2.0
- old
+ new
@@ -8,10 +8,10 @@
class Show < Pragma::Operation::Base
step Macro::Classes()
step Macro::Model(:find_by)
step Macro::Policy()
step Macro::Decorator()
- step :respond!
+ step :respond!, name: 'respond'
def respond!(options)
options['result.response'] = Response::Ok.new(entity: options['result.decorator.instance'])
end
end