Work with mongoid ids