module Laminar::Transacticle::ClassMethods
Laminar::Particle class methods and attributes.
Public Instance Methods
call_with_txn(context = {})
click to toggle source
# File lib/laminar/transacticle.rb, line 19 def call_with_txn(context = {}) self.call_with_txn!(context) rescue ParticleStopped context end
call_with_txn!(context = {})
click to toggle source
# File lib/laminar/transacticle.rb, line 25 def call_with_txn!(context = {}) ActiveRecord::Base.transaction do self.call!(context) end end