Convert syntax to mongoid