Work with mongoid