Sha256: b3598ecc5765ac1be84c5fda692280802128b0e4151733b403835ba85103e76a
Contents?: true
Size: 579 Bytes
Versions: 34
Compression:
Stored size: 579 Bytes
Contents
class ManifestationCheckoutStatStateMachine 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_checkout_stat| manifestation_checkout_stat.update_column(:started_at, Time.zone.now) manifestation_checkout_stat.calculate_count! end after_transition(to: :completed) do |manifestation_checkout_stat| manifestation_checkout_stat.update_column(:completed_at, Time.zone.now) end end
Version data entries
34 entries across 34 versions & 1 rubygems