mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
1b422a537f
Example: class Foo include AASM aasm do state :initialized state :calculated state :finalized end end > Foo::STATE_INITIALIZED => :initialized > Foo::STATE_CALCULATED => :calculated You may find this useful in custom scopes when using ActiveRecord, or when testing your classes. |
||
---|---|---|
.. | ||
persistence | ||
callbacks_spec.rb | ||
complex_example_spec.rb | ||
event_spec.rb | ||
initial_state_spec.rb | ||
inspection_spec.rb | ||
localizer_spec.rb | ||
memory_leak_spec.rb | ||
new_dsl_spec.rb | ||
simple_example_spec.rb | ||
state_spec.rb | ||
subclassing_spec.rb | ||
transition_spec.rb |