Support Mongoid in addition to ActiveRecord