Sha256: ce1d1ebf292fe9a9c9d10d2b9a4ddfcab14730e7760340a9f5ef130b1cdb96d8
Contents?: true
Size: 454 Bytes
Versions: 14
Compression:
Stored size: 454 Bytes
Contents
class StateMachineModel < ActiveRecord::Base if respond_to?(:state_machine) state_machine :initial => :state1 do state :state1 state :state2 state :state3 event :event do transition :state1 => :state2 end event :another_event do transition :state1 => :state3 end after_transition :state1 => :state2, :do => :event_callback end def event_callback end end end
Version data entries
14 entries across 14 versions & 1 rubygems