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.1.16 app/models/message_request_state_machine.rb
enju_message-0.1.15 app/models/message_request_state_machine.rb
enju_message-0.1.14 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre26 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre25 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre24 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre23 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre22 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre21 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre20 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre19 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre18 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre17 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre16 app/models/message_request_state_machine.rb
enju_message-0.1.14.pre15 app/models/message_request_state_machine.rb