…_ADAPTER env variable
…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.
… - closes #171
…ternuity's quick_scopes gem; added .swp files to git ignore
…lasses = false (the default), specifically when loading an object throught the parent in load_and_authorize_resource. Assume Photo model and User model where user has many photos: @photo = current_user.photos.find(1) # this returns a photo @photo1 = Photo.find(1) @photo.kind_of?(Photo) is not always true for some reason when class_cacheing is false. Where as @photo1.kind_of?(Photo) always appears to be true. Of interesting note, in the above example @photo != @photo1 if kind_of? is false. Very odd. Again, this only appears to be when loading and object through an association.
… to return nothing and add specs to test for :manage :all.
…id documents and add more specs for accesible_by with Mongoid.
The previous spec that checked for this was not right, since there were no documents in the collection, so every query would return an empty result.
…long with specs.