Sha256: 98005d004ef6c28fac32f46b7897d5158954f77a46ad0a0eb277179bfb6726f3
Contents?: true
Size: 410 Bytes
Versions: 31
Compression:
Stored size: 410 Bytes
Contents
class ReadmeJob < ActiveRecord::Base include AASM aasm do state :sleeping, :initial => true state :running state :cleaning event :run do transitions :from => :sleeping, :to => :running end event :clean do transitions :from => :running, :to => :cleaning end event :sleep do transitions :from => [:running, :cleaning], :to => :sleeping end end end
Version data entries
31 entries across 31 versions & 1 rubygems