Changeset [a33315698fa80472036a78cad05dd70f4601cea2] by Christian Seiler

March 4th, 2016 @ 05:33 AM

Move creation of scopes to persistence adapaters
- extend the classes with create_scope method - avoid expensive "klass.ancestors.map" checks - ORM-specific code is in one place https://github.com/aasm/aasm/commit/a33315698fa80472036a78cad05dd70...

Committed by Christian Seiler

  • M lib/aasm/persistence/active_record_persistence.rb
  • M lib/aasm/persistence/base.rb
  • M lib/aasm/persistence/mongo_mapper_persistence.rb
  • M lib/aasm/persistence/mongoid_persistence.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.