Another attempt at fixing the Mongoid configuration