Changeset [109aa023f29e21ef1cdf37ad9ea6301583a42a56] by Lin Jen-Shin
March 3rd, 2015 @ 02:05 AM
Do not update unloaded state for Sequel:
The problem is that the record might already have a state, which
was
just not loaded due to explicit `select'. In this case, AASM should
not
try to write the initial state into database.
https://github.com/aasm/aasm/commit/109aa023f29e21ef1cdf37ad9ea6301...
Committed by Lin Jen-Shin
- M lib/aasm/persistence/sequel_persistence.rb
- M spec/unit/persistence/sequel_persistence_spec.rb
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.