Fixed compatibility with Mongoid 4.x.
Merge pull request #83 from dblock/mongoid-4x

Fixed compatibility with Mongoid 4.x.