Changeset [109aa023f29e21ef1cdf37ad9ea6301583a42a56] by Lin Jen-Shin
Revision 109aa023f29e21ef1cdf37ad9ea6301583a42a56,
committed 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...
2 changed files
-
M
lib/aasm/persistence/sequel_persistence.rb -
M
spec/unit/persistence/sequel_persistence_spec.rb