support mongoid 3 - fix #3