forked from OpenNeo/impress
automatically rezone items
This commit is contained in:
parent
70cf262387
commit
f7723ac1c8
1 changed files with 4 additions and 1 deletions
|
@ -203,7 +203,10 @@ class Item < ActiveRecord::Base
|
|||
where(rels[:swf_asset_id].in(ids_to_delete)).
|
||||
delete_all
|
||||
end
|
||||
@parent_swf_asset_relationships_to_update.each(&:save!)
|
||||
@parent_swf_asset_relationships_to_update.each do |rel|
|
||||
rel.save!
|
||||
rel.swf_asset.save!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue