Sha256: 30ec405e0014c05e00fbab51680029478de6a9330b534ccd3c84cf5a7bcacbf6

Contents?: true

Size: 324 Bytes

Versions: 55

Compression:

Stored size: 324 Bytes

Contents

module Models
  class Process
    include AASM

    aasm do
      state :sleeping
      state :running
      state :suspended

      event :start do
        transitions :from => :sleeping, :to => :running
      end

      event :stop do
        transitions :from => :running, :to => :suspended
      end
    end

  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
aasm-4.0.3 spec/models/not_auto_loaded/process.rb
aasm-4.0.2 spec/models/not_auto_loaded/process.rb
aasm-4.0.1 spec/models/not_auto_loaded/process.rb
aasm-4.0.0 spec/models/not_auto_loaded/process.rb
aasm-3.4.0 spec/models/not_auto_loaded/process.rb
aasm-3.3.3 spec/models/not_auto_loaded/process.rb
aasm-3.3.2 spec/models/not_auto_loaded/process.rb
aasm-3.3.1 spec/models/not_auto_loaded/process.rb
aasm-3.3.0 spec/models/not_auto_loaded/process.rb
aasm-3.2.1 spec/models/not_auto_loaded/process.rb
aasm-3.2.0 spec/models/not_auto_loaded/process.rb
aasm-3.1.1 spec/models/not_auto_loaded/process.rb
aasm-3.1.0 spec/models/not_auto_loaded/process.rb
aasm-3.0.26 spec/models/not_auto_loaded/process.rb
aasm-3.0.25 spec/models/not_auto_loaded/process.rb