Sha256: afd38ca12252fe70050d5be0fd2e726554e579478416f33bd645d8d6f7c85747
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
module BloomRemit module Txns module Operations class Create < Trailblazer::Operation include Model model Txn, :create contract Contracts::Create include Dispatch callback :after_create, Callbacks::AfterCreate def process(params) validate(params[:txn]) do |f| f.model.secret = SecureRandom.uuid f.save dispatch! :after_create end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bloom_remit-0.0.1 | app/concepts/bloom_remit/txns/operations/create.rb |