mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
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.
12 lines
523 B
Text
12 lines
523 B
Text
* Add some event callbacks, #aasm_event_fired(from, to), and #aasm_event_failed(event)
|
|
Based on transition logging suggestion [Artem Vasiliev] and timestamp column suggestion [Mike Ferrier]
|
|
|
|
* Add #aasm_events_for_state and #aasm_events_for_current_state [Joao Paulo Lins]
|
|
|
|
* Ensure that a state is written for a new record even if aasm_current_state or
|
|
{state}= are never called.
|
|
|
|
* Fix AR persistence so new records have their state set. [Joao Paulo Lins]
|
|
|
|
* Make #event! methods return a boolean [Joel Chippindale]
|
|
|