0
我試圖創建以下範圍:mongoid 4錯誤的參數數目(3 1)範圍
scope :involving, -> (user) do
where("conversations.sender_id =? OR conversations.recipient_id =?", user.id, user.id)
end
,但我得到:
錯誤的參數數目(3 1)
我做錯了什麼。
在此先感謝。