Changeset [2c49078c70f2528b3feb4f09e112cd23e81f90ea] by Aryk Grosz
July 6th, 2017 @ 10:38 PM
DRY-up Mongoid and ActiveRecord Persistence
- Paves the way for sequel to have transactions, locking and other functionality that ActiveRecordPersistence has.
- DRY-up shared code between Mongoid and ActiveRecord
- Provide an ORM module that can be included when you want ORM like functionality. This will be used for SequelPersistence.
Addresses #474
(cherry picked from commit 12d1d338803ee200482e8b72799fef8c63e1da51) https://github.com/aasm/aasm/commit/2c49078c70f2528b3feb4f09e112cd2...
Committed by Aryk Grosz
- A lib/aasm/persistence/orm.rb
- M lib/aasm/persistence/active_record_persistence.rb
- M lib/aasm/persistence/base.rb
- M lib/aasm/persistence/mongoid_persistence.rb
- M spec/unit/persistence/active_record_persistence_multiple_spec.rb
- M spec/unit/persistence/active_record_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.