Supporting Mongoid starting from 3.0.0