次のmongodbクエリをmongoidで書くには?
db.messages.find({
$or :[
{ $and : [
{"receiver_id":"user1@gmail.com"},
{"sender_id":"user2@hotmail.com"}
]
},
{ $and : [
{"receiver_id":"user2@hotmail.com"},
{"sender_id":"user1@gmail.com"}
]
}
]
});