From 171d691a98fa849067d9a789311b8554e93c4f78 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 13 Jan 2012 15:27:30 -0600 Subject: [PATCH] fix nc mall spider for remote ID --- 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 7b88a5e7..fc0d737b 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -526,7 +526,7 @@ class Item < ActiveRecord::Base data[item_id_key]['asset_data'].map do |asset_id_str, asset_data| item.zones_restrict = asset_data['restrict'] item.save - swf_asset = SwfAsset.find_or_initialize_by_type_and_id(SwfAssetType, asset_id_str.to_i) + swf_asset = SwfAsset.find_or_initialize_by_type_and_remote_id(SwfAssetType, asset_id_str.to_i) swf_asset.type = SwfAssetType swf_asset.body_id = pet_type.body_id swf_asset.mall_data = asset_data