Sha256: a25860cb61e01b37088b43a54475a80268210e9b8941cb3365bde45562c6c58c

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

class MalformedStates
  include StateShifter::Definition

  state_machine do 

    # first state to be defined is the initial one
    state :new do
      event :submit => :awaiting_review
    end

    state :new do
      event :review => :being_reviewed
    end

  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
state_shifter-1.1.3 examples/malformed_states.rb
state_shifter-1.1.2 examples/malformed_states.rb
state_shifter-1.0.7 examples/malformed_states.rb
state_shifter-1.0.5 examples/malformed_states.rb
state_shifter-1.0.3 examples/malformed_states.rb
state_shifter-0.8.1 examples/malformed_states.rb