class Transitionable::InvalidStateTransition

Public Class Methods

new(from_state, to_state) click to toggle source
Calls superclass method
# File lib/transitionable.rb, line 10
def initialize(from_state, to_state)
  msg = from_state ?
    "Can't transition from #{from_state} to #{to_state}." :
    "Can't transition to #{to_state}."
  super(msg)
end