1
0
Fork 0
forked from OpenNeo/impress

include zones_restrict in item selector when mall spidering, to avoid flex_source errors

This commit is contained in:
Emi Matchu 2013-10-08 14:42:46 -05:00
parent 2f607036f2
commit 0cb7fc87df

View file

@ -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|