Sha256: 5c4092d66680ea90b63b610b82ad4ce93037e1fa8f3b3924f78d2c2e787a13c4

Contents?: true

Size: 340 Bytes

Versions: 1

Compression:

Stored size: 340 Bytes

Contents

module Trailblazer::V2_1
  class Operation
    module Contract
      def self.Persist(method: :save, name: "default")
        path = "contract.#{name}"
        step = ->(options, **) { options[path].send(method) }

        task = Activity::TaskBuilder::Binary( step )

        { task: task, id: "persist.save" }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trailblazer-future-2.1.0.rc1 lib/trailblazer/v2_1/operation/persist.rb