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

Version Path
aasm-5.3.1 spec/models/active_record/readme_job.rb
aasm-5.3.0 spec/models/active_record/readme_job.rb
aasm-5.2.0 spec/models/active_record/readme_job.rb
aasm-5.1.1 spec/models/active_record/readme_job.rb
aasm-5.1.0 spec/models/active_record/readme_job.rb
aasm-5.0.8 spec/models/active_record/readme_job.rb
aasm-5.0.7 spec/models/active_record/readme_job.rb
aasm-5.0.6 spec/models/active_record/readme_job.rb
aasm-5.0.5 spec/models/active_record/readme_job.rb
aasm-5.0.4 spec/models/active_record/readme_job.rb
aasm-5.0.3 spec/models/active_record/readme_job.rb
aasm-5.0.2 spec/models/active_record/readme_job.rb
aasm-5.0.1 spec/models/active_record/readme_job.rb
aasm-5.0.0 spec/models/active_record/readme_job.rb
aasm-4.12.3 spec/models/active_record/readme_job.rb
aasm-4.12.2 spec/models/active_record/readme_job.rb
aasm-4.12.1 spec/models/active_record/readme_job.rb
aasm-4.12.0 spec/models/active_record/readme_job.rb
aasm-4.11.1 spec/models/active_record/readme_job.rb
aasm-4.11.0 spec/models/active_record/readme_job.rb