forked from OpenNeo/impress
another oops, better fix
This commit is contained in:
parent
c2c0fe92e8
commit
9c0c7b78cf
2 changed files with 2 additions and 2 deletions
|
@ -316,7 +316,7 @@ class Item < ActiveRecord::Base
|
|||
swf_asset.origin_pet_type = pet_type
|
||||
|
||||
# Build and update the relationship
|
||||
relationship = existing_relationships_by_item_id_and_swf_asset_id[item.id][swf_asset_id] rescue nil
|
||||
relationship = existing_relationships_by_item_id_and_swf_asset_id[item.id][swf_asset.id] rescue nil
|
||||
unless relationship
|
||||
relationship = ParentSwfAssetRelationship.new
|
||||
relationship.parent = item
|
||||
|
|
|
@ -97,7 +97,7 @@ class PetState < ActiveRecord::Base
|
|||
end
|
||||
swf_asset.origin_biology_data = asset_info
|
||||
swf_asset.origin_pet_type = pet_type
|
||||
relationship = existing_relationships_by_swf_asset_id[swf_asset_id]
|
||||
relationship = existing_relationships_by_swf_asset_id[swf_asset.id]
|
||||
unless relationship
|
||||
relationship ||= ParentSwfAssetRelationship.new
|
||||
relationship.parent = pet_state
|
||||
|
|
Loading…
Reference in a new issue