- added autocreation of state scopes for Mongoid (thanks to @jonnyshields)
- added support for localized state names (on a class level, like Record.aasm.states.map(&:localized_name))
- supporting event inspection for to-states transitions (
Event#transitions_to_state?
)
- supporting ActiveRecord transactions when firing an event
aasm_from_states_for_state
now supports to filter for specific transition
- added class method
aasm_from_states_for_state
to retrieve all from states (regarding transitions) for a given state
- added support for transitions from all other states (thanks to Stefan 'swrobel' Wrobel)
- guard checks (e.g.
may_edit?
) now support guard parameters as well
- fixed issue with generating docs using yard
- removed deprecation warning when localizing aasm state names (look at https://github.com/rubyist/aasm/issues/38 for details)
- bugfix: if configured to skip validation the code does not validate anymore
- bugfix: get rid of error with old rubygems versions
- bugfix: Subclasses of aasm-enabled classes don't lose settings anymore (thanks to codez)
- bugfix: ActiveRecord scopes are generated when using the new DSL
- ActiveRecord persistence can ignore validation when trying to save invalid models
- added support for Mongoid (Thanks, Michał Taberski)
- switched documentation to the new DSL
- whiny transactions: by default, raise an exception if an event transition is not possible
- you may disable whiny transactions
- supporting new DSL (which is much shorter)
- bugfix: avoid naming conflict with i18n
- supporting i18n
- supporting regular expressions for hash values and strings