Mongoid 3 has a new index format

I had to change this to make it work with mongoid 3 in my app