Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.
This project is archived and is in readonly mode.
When we set name to state machine, dynamic method of current state falls.
Example:
class Example
include ActiveModel::StateMachine
state_machine :example do
state :new state :changed
event :change do
transitions :from => :new, :to => :changed
end
end end
p = Example.new
p.change!
p.current_state(:example) # => :changed
p.changed? # => :new
Why markup does not undesrtand new line ?
Reported by eagle.anton (at gmail) · October 1st, 2008 @ 07:05 AM
January 18th, 2009 @ 05:48 AM
New patch.
January 23rd, 2009 @ 01:02 PM
I vote for getting rid of StateMachine from AMo.
April 21st, 2009 @ 01:37 PM