Sha256: c6bdf0a2ead2dc3a7dec567f5d025a0aeebf645f95e62cce6e8c3f41dcb4a3c6
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true module Pragma module Operation # Finds the requested record, authorizes it and decorates it. # # @author Alessandro Desantis class Show < Pragma::Operation::Base step Macro::Classes() step Macro::Model(:find_by) step Macro::Policy() step Macro::Decorator() step :respond!, name: 'respond' def respond!(options) options['result.response'] = Response::Ok.new(entity: options['result.decorator.instance']) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pragma-2.5.0 | lib/pragma/operation/show.rb |
pragma-2.4.0 | lib/pragma/operation/show.rb |
pragma-2.3.0 | lib/pragma/operation/show.rb |
pragma-2.2.0 | lib/pragma/operation/show.rb |