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-5.3.1 spec/models/not_auto_loaded/process.rb
aasm-5.3.0 spec/models/not_auto_loaded/process.rb
aasm-5.2.0 spec/models/not_auto_loaded/process.rb
aasm-5.1.1 spec/models/not_auto_loaded/process.rb
aasm-5.1.0 spec/models/not_auto_loaded/process.rb
aasm-5.0.8 spec/models/not_auto_loaded/process.rb
aasm-5.0.7 spec/models/not_auto_loaded/process.rb
aasm-5.0.6 spec/models/not_auto_loaded/process.rb
aasm-5.0.5 spec/models/not_auto_loaded/process.rb
aasm-5.0.4 spec/models/not_auto_loaded/process.rb
aasm-5.0.3 spec/models/not_auto_loaded/process.rb
aasm-5.0.2 spec/models/not_auto_loaded/process.rb
aasm-5.0.1 spec/models/not_auto_loaded/process.rb
aasm-5.0.0 spec/models/not_auto_loaded/process.rb
aasm-4.12.3 spec/models/not_auto_loaded/process.rb
aasm-4.12.2 spec/models/not_auto_loaded/process.rb
aasm-4.12.1 spec/models/not_auto_loaded/process.rb
aasm-4.12.0 spec/models/not_auto_loaded/process.rb
aasm-4.11.1 spec/models/not_auto_loaded/process.rb
aasm-4.11.0 spec/models/not_auto_loaded/process.rb