1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
Commit graph

6 commits

Author SHA1 Message Date
Scott Barron
61b6b8ec06 Add two event callbacks:
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.
2008-03-02 07:52:46 -05:00
Scott Barron
29304c70ae Some specs for #aasm_events_for_current_state 2008-03-02 07:33:37 -05:00
Scott Barron
10562aeb47 Updated TODO 2008-02-22 15:47:05 -05:00
Scott Barron
551503d12f Add .aasm_states method to get a list of all states for a class 2008-02-21 12:54:42 -05:00
Scott Barron
073bcbf695 Throw in a TODO of actions 2008-02-21 12:11:06 -05:00
Scott Barron
85baeda50a Prepare rakefile and rake tasks for gem packaging and rdocing 2008-02-21 11:41:56 -05:00