Sha256: 51ace4fb1cf5f0be1c5d188f928740220ac4c522ce5697f4740f2c4c7ba8d538
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
module BloomRemit module Txns module Operations class Update < Trailblazer::Operation include Model model Txn, :update contract Contracts::Update def process(params) validate(params[:txn]) do |f| f.save end end private def model!(params) Txn.find_by!(id: params[:id], secret: params[:secret]) 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/update.rb |