Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Changeset [2c49078c70f2528b3feb4f09e112cd23e81f90ea] by Aryk Grosz

Revision 2c49078c70f2528b3feb4f09e112cd23e81f90ea, committed 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...

6 changed files

  • 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