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. |
||
---|---|---|
.. | ||
models | ||
spec_helpers | ||
unit | ||
database.yml | ||
en.yml | ||
en_deprecated_style.yml | ||
schema.rb | ||
spec_helper.rb |