Edgecase Pair One
fc86784602
Added success callback which takes place after persistent aasm writes
2008-05-20 15:27:35 -04:00
Jeff Dean
a0bb1c404c
make sure the 2 fields are in sync by using before_validation_on_create
2008-04-29 01:58:05 -04:00
Jeff Dean
cb6bd4f534
* Specs and bug fixes for the ActiveRecordPersistence, keeping persistence columns in sync
...
Allowing for nil values in states for active record
New non-(!) methods that allow for firing events without persisting [Jeff Dean]
2008-04-29 01:27:56 -04:00
Chad Humphries
c196fef669
Re-exposing options on state, for devious extra uses
2008-04-14 19:49:57 -04:00
Chad Humphries
bd788a5212
Added aasm_states_for_select that will return a select friendly collection of states.
...
Also added additional tests
2008-04-14 15:57:34 -04:00
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
ea7820db4a
More consistent aasm_ namespacing
2008-02-21 12:59:28 -05:00
Scott Barron
7a734376c4
Reorg spec dir to have units and functionals
2008-02-21 12:18:08 -05:00