Can someone please tell me what is wrong in this statement?
scope :between, -> (sender_id, recipient_id) do
where('(conversations.sender_id = ? AND conversations.recipient_id =?) OR (conversations.sender_id = ? AND conversations.recipient_id =?)', sender_id,recipient_id, recipient_id, sender_id)
end
NetBeans put a red line under it and says Unexpected tLPAREN_ARG
Thank you.