Changeset [2449fcc1650827e1a383103b76f49c0001593c81] by Ebrahim Kobeissi

January 13th, 2016 @ 05:43 PM

Fixes incorrect permitted states

Permitted states now returns the correct states when an event has more than one transition, and if a transition uses a guard.
https://github.com/aasm/aasm/commit/2449fcc1650827e1a383103b76f49c0...

Committed by Ebrahim Kobeissi

  • A spec/models/multi_transitioner.rb
  • M lib/aasm/instance_base.rb
  • M spec/unit/inspection_spec.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Library for adding state machines to Ruby classes. Includes persistence layers for things like ActiveRecord. Formerly known as acts_as_state_machine.