Sha256: 3e953f22736ce19de0608e0ce69c75520576fff5f30f82efdd5dfd55bbc20f3a

Contents?: true

Size: 325 Bytes

Versions: 7

Compression:

Stored size: 325 Bytes

Contents

class SimpleExample
  include AASM
  aasm do
    state :initialised, :initial => true
    state :filled_out
    state :authorised

    event :fill_out do
      transitions :from => :initialised, :to => :filled_out
    end
    event :authorise do
      transitions :from => :filled_out, :to => :authorised
    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
aasm-5.0.6 spec/models/simple_example.rb
aasm-5.0.5 spec/models/simple_example.rb
aasm-5.0.4 spec/models/simple_example.rb
aasm-5.0.3 spec/models/simple_example.rb
aasm-5.0.2 spec/models/simple_example.rb
aasm-5.0.1 spec/models/simple_example.rb
aasm-5.0.0 spec/models/simple_example.rb