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:
parent
4604a412fd
commit
82c2ff6206
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue