Sha256: 3f61e5ce53a1f7a80b52769232bfa3bbc6f960b9d3733735a10e8c163960990b
Contents?: true
Size: 573 Bytes
Versions: 46
Compression:
Stored size: 573 Bytes
Contents
class ManifestationReserveStatStateMachine include Statesman::Machine state :pending, initial: true state :started state :completed transition from: :pending, to: :started transition from: :started, to: :completed after_transition(to: :started) do |manifestation_reserve_stat| manifestation_reserve_stat.update_column(:started_at, Time.zone.now) manifestation_reserve_stat.calculate_count! end after_transition(to: :completed) do |manifestation_reserve_stat| manifestation_reserve_stat.update_column(:completed_at, Time.zone.now) end end
Version data entries
46 entries across 46 versions & 1 rubygems