Sha256: feee8905dba3e822bea02b852e3fe8edab7d44a81134b77b38b3c0414174e8d1

Contents?: true

Size: 261 Bytes

Versions: 35

Compression:

Stored size: 261 Bytes

Contents

class MessageRequestStateMachine
  include Statesman::Machine

  state :pending, initial: true
  state :sent

  transition from: :pending, to: :sent

  before_transition(from: :pending, to: :sent) do |message_request|
    message_request.send_message
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
enju_message-0.3.4 app/models/message_request_state_machine.rb
enju_message-0.3.3 app/models/message_request_state_machine.rb
enju_message-0.4.0.rc.1 app/models/message_request_state_machine.rb
enju_message-0.3.2 app/models/message_request_state_machine.rb
enju_message-0.4.0.beta.2 app/models/message_request_state_machine.rb
enju_message-0.4.0.beta.1 app/models/message_request_state_machine.rb
enju_message-0.3.1 app/models/message_request_state_machine.rb
enju_message-0.3.0 app/models/message_request_state_machine.rb
enju_message-0.3.0.rc.1 app/models/message_request_state_machine.rb
enju_message-0.3.0.beta.1 app/models/message_request_state_machine.rb
enju_message-0.2.4 app/models/message_request_state_machine.rb
enju_message-0.2.3 app/models/message_request_state_machine.rb
enju_message-0.2.2 app/models/message_request_state_machine.rb
enju_message-0.2.1 app/models/message_request_state_machine.rb
enju_message-0.2.0 app/models/message_request_state_machine.rb
enju_message-0.2.0.beta.5 app/models/message_request_state_machine.rb
enju_message-0.2.0.beta.4 app/models/message_request_state_machine.rb
enju_message-0.2.0.beta.3 app/models/message_request_state_machine.rb
enju_message-0.2.0.beta.2 app/models/message_request_state_machine.rb
enju_message-0.2.0.beta.1 app/models/message_request_state_machine.rb