Took code changes from this git pull request (https://github.com/goncalossilva/mongoid-sequence/pull/6) to update this gem to work with Mongoid 3.1