Fixed compatibility with Mongoid 4.0.0.alpha2
Merge pull request #49 from semenyukdmitriy/master

Fixed compatibility with Mongoid 4.0.0.alpha2