… clean up Mongoid adapter and specs
…n behavior for ActiveRecord and DataMapper. Previously, CanCan::ModelAdditions had to be included in each and every Mongoid document separately. Also removed manual include of CanCan::ModelAdditions from Mongoid documents in Mongoid adapter specs.
…R environment variable for choosing which one to run
This broke some of the mongoid tests and I don't know how to fix them. Both packages define Symbol#in, and when you load them both things don't behave properly. Hopefully someone more versed in mongoid can rewrite the spec to not depend on the Symbol extensions.
…t defined by always checking if Mongoid is defined before referencing Mongoid-related constants Also add spec for this bug
…ions. Easier to just do a simple comparison on the object in memory than to search the database. Also this allows method calls and other attributes that might not be found in the database.