Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.73 KB

CHANGELOG.md

File metadata and controls

41 lines (31 loc) · 1.73 KB

v0.5.0, 27 March 2014

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

  • Added MongoidTransition to the autoload statements, fixing #29 (patch by @tomclose)

v0.4.0, 27 February 2014

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.

v0.3.0, 20 February 2014

Additions

  • Adds Machine#allowed_transitions method (patch by @prikha)

v0.2.1, 31 December 2013

Fixes

  • Don't add attr_accessible to generated transition model if running in Rails 4

v0.2.0, 16 December 2013

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

v0.1.0, 5 November 2013

Additions

  • Adds Mongoid adapter and generators (patch by @dluxemburg)

Changes

  • Replaces config#transition_class with Statesman::Adapters::ActiveRecordTransition mixin. (inspired by @cjbell88)
  • Renames the active record transition generator from statesman:transition to statesman:active_record_transition.
  • Moves to using require_relative internally where possible to avoid stomping on application load paths.

v0.0.1, 28 October 2013.

  • Initial release