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

elseif presistance

This commit is contained in:
michaltaberski 2011-12-16 16:46:15 +01:00
parent 1359605755
commit 53ea701855

View file

@ -9,6 +9,9 @@ module AASM
if hierarchy.include?("ActiveRecord::Base")
require File.join(File.dirname(__FILE__), 'persistence', 'active_record_persistence')
base.send(:include, AASM::Persistence::ActiveRecordPersistence)
elsif hierarchy.include?("Mongoid::Document")
require File.join(File.dirname(__FILE__), 'persistence', 'mongoid_persistence')
base.send(:include, AASM::Persistence::MongoidPersistence)
end
end
end