mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
AASM - State machines for Ruby classes (plain Ruby, ActiveRecord, Mongoid, NoBrainer, Dynamoid)
61b6b8ec06
aasm_event_fired(from, to) - called when an event is fired successfully aasm_event_failed(event) - called when an event fails These could be used to implement transition logging [Artem Vasiliev] or setting a timestamp column [Mike Ferrier] as well as other pieces of love and magic. |
||
---|---|---|
doc | ||
lib | ||
spec | ||
aasm.rb | ||
CHANGELOG | ||
MIT-LICENSE | ||
Rakefile | ||
README | ||
TODO |
This is AASM AASM is an evolution of the Rails plugin acts_as_state_machine. AASM Features Everything you've come to know and love from acts_as_state_machine, and then some: - Separation from Rails * Mix into any Ruby class - Persistence hooks so state can be saved in whatever floats your boat * e.g. ActiveRecord, Marshal, etc. See the TODO for more. gem install aasm scott@elitists.net