1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

Fixing some file dependencies for Ruby

This commit is contained in:
Yannick Rekinger 2016-03-18 13:42:19 +01:00
parent d0b982b121
commit 505f0e2a67
2 changed files with 5 additions and 4 deletions

View file

@ -12,5 +12,6 @@ require 'aasm/core/state'
require 'aasm/localizer'
require 'aasm/state_machine'
require 'aasm/persistence'
require 'aasm/persistence/base'
require 'aasm/persistence/plain_persistence'
require 'aasm/aasm'

View file

@ -10,16 +10,16 @@ module AASM
require_persistence(:active_record)
include_persistence base, :active_record
elsif hierarchy.include?("Mongoid::Document")
require_persistence(:active_record)
require_persistence(:mongoid)
include_persistence base, :mongoid
elsif hierarchy.include?("MongoMapper::Document")
require_persistence(:active_record)
require_persistence(:mongo_mapper)
include_persistence base, :mongo_mapper
elsif hierarchy.include?("Sequel::Model")
require_persistence(:active_record)
require_persistence(:sequel)
include_persistence base, :sequel
elsif hierarchy.include?("Dynamoid::Document")
require_persistence(:active_record)
require_persistence(:dynamoid)
include_persistence base, :dynamoid
elsif hierarchy.include?("CDQManagedObject")
include_persistence base, :core_data_query