From 0cb7fc87df1f3fa0fa94f2680e69e6bf6d2bd52a Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 8 Oct 2013 14:42:46 -0500 Subject: [PATCH] include zones_restrict in item selector when mall spidering, to avoid flex_source errors --- 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 79c528fd..b1d66847 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -493,7 +493,7 @@ class Item < ActiveRecord::Base end def spider_mall_assets!(limit) - items = self.select([arel_table[:id]]).sold_in_mall.spidered_longest_ago.limit(limit).all + items = self.select([:id, :zones_restrict]).sold_in_mall.spidered_longest_ago.limit(limit).all puts "- #{items.size} items need asset spidering" AssetStrategy.build_strategies items.each do |item|