From ec9e997ac5cb84149ad0bab224343c45d3b961f9 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 13 Jan 2012 15:20:47 -0600 Subject: [PATCH] fix user:owns id ambiguity --- app/models/item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/item.rb b/app/models/item.rb index b92c56a2..7b88a5e7 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -734,7 +734,7 @@ class Item < ActiveRecord::Base "any items yet. Head to Your Items to add some!" end - "id IN (#{item_ids.join(',')})" + arel_table[:id].in(item_ids) end search_filter :only do |species_name|