ensure Mongoid::Document is defined before loading Mongoid adapter - closes #359
This commit is contained in:
parent
ff13a82dda
commit
cb9777be5f
|
@ -10,4 +10,4 @@ require 'cancan/model_adapters/abstract_adapter'
|
||||||
require 'cancan/model_adapters/default_adapter'
|
require 'cancan/model_adapters/default_adapter'
|
||||||
require 'cancan/model_adapters/active_record_adapter' if defined? ActiveRecord
|
require 'cancan/model_adapters/active_record_adapter' if defined? ActiveRecord
|
||||||
require 'cancan/model_adapters/data_mapper_adapter' if defined? DataMapper
|
require 'cancan/model_adapters/data_mapper_adapter' if defined? DataMapper
|
||||||
require 'cancan/model_adapters/mongoid_adapter' if defined? Mongoid
|
require 'cancan/model_adapters/mongoid_adapter' if defined?(Mongoid) && defined?(Mongoid::Document)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user