Sha256: 699ad3311768a8a401ff8fab8e92916d12036d32d3e707160d4cea392d080cd1
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
# frozen_string_literal: true require 'trailblazer/operation/contract' module Pragma module Operation module Macro module Contract def self.Build(name: 'default', constant: nil, builder: nil) step = lambda do |input, options| Trailblazer::Operation::Contract::Build.for( input, options, name: name, constant: constant, builder: builder ).tap do |contract| contract.current_user = options['current_user'] end end [step, name: 'contract.build'] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pragma-2.1.1 | lib/pragma/operation/macro/contract/build.rb |
pragma-2.1.0 | lib/pragma/operation/macro/contract/build.rb |
pragma-2.0.0 | lib/pragma/operation/macro/contract/build.rb |