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

preparing versions 3.1 and 4.0

This commit is contained in:
Thorsten Böttger 2013-12-16 22:38:29 +01:00
parent 8bb01faebd
commit 90cdf673ad
2 changed files with 29 additions and 0 deletions

12
AASM4.md Normal file
View file

@ -0,0 +1,12 @@
# Planned changes for AASM 4
* **done**: firing an event does not require `to_state` parameter anymore (closing issues #11, #58, #80)
* don't allow direct assignment of state attribute (see #53)
* remove old callbacks (see #96)
* remove old aasm DSL (like `aasm_state`)
# Planned changes for AASM >= 3.1
* deprecate old aasm DSL (`aasm_state`, etc.)
* deprecate old callbacks

17
callbacks.txt Normal file
View file

@ -0,0 +1,17 @@
callbacks
begin
old_state exit # old? should be deprecated -> use old_state.before_exit instead
event before
old_state before_exit
new_state before_enter
new_state enter # old? should be deprecated -> use new_state.before_enter instead
...update state...
transition guard
transition on_transition
event success # if persist successful
old_state after_exit
new_state after_enter
event after
rescue
event error