Additions
- Scope methods. Adds a module which can be mixed in to an ActiveRecord model to provide
.in_state
and.not_in_state
query scopes. - Adds
Machine#after_initialize
hook (patch by @att14)
Fixes
Additions
- Adds after_commit flag to after_transition for callbacks to be executed after the transaction has been committed on the ActiveRecord adapter. These callbacks will still be executed on non transactional adapters.
Additions
- Adds Machine#allowed_transitions method (patch by @prikha)
Fixes
- Don't add attr_accessible to generated transition model if running in Rails 4
Additions
- Adds Ruby 1.9.3 support (patch by @jakehow)
- All Mongo dependent tests are tagged so they can be excluded from test runs
Changes
- Specs now crash immediately if Mongo is not running
Additions
- Adds Mongoid adapter and generators (patch by @dluxemburg)
Changes
- Replaces
config#transition_class
withStatesman::Adapters::ActiveRecordTransition
mixin. (inspired by @cjbell88) - Renames the active record transition generator from
statesman:transition
tostatesman:active_record_transition
. - Moves to using
require_relative
internally where possible to avoid stomping on application load paths.
- Initial release