Got it working for mongoid 3