1
0
Fork 0
forked from OpenNeo/impress

ensure that we are only selecting biology assets when we want biology assets, objects when objects, etc

This commit is contained in:
Emi Matchu 2010-05-20 21:23:24 -04:00
parent 4604a412fd
commit 82c2ff6206

View file

@ -7,6 +7,6 @@ module SwfAssetParent
select(rels[:swf_asset_id]). select(rels[:swf_asset_id]).
all.map(&:swf_asset_id) all.map(&:swf_asset_id)
assets = SwfAsset.arel_table assets = SwfAsset.arel_table
SwfAsset.where(assets[:id].in(ids)) SwfAsset.where(assets[:id].in(ids).and(assets[:type].eq(type)))
end end
end end