forked from OpenNeo/impress
Fix item data not loading
Oops, finder options were removed! That's fine, the `:select` on here isn't useful anyway, and I'd rather just load everything and be simpler lol
This commit is contained in:
parent
52d4ec8443
commit
8ba07800d9
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class SwfAssetsController < ApplicationController
|
||||||
json = @swf_assets.all.group_by(&:body_id)
|
json = @swf_assets.all.group_by(&:body_id)
|
||||||
end
|
end
|
||||||
elsif params[:pet_type_id] && params[:item_ids]
|
elsif params[:pet_type_id] && params[:item_ids]
|
||||||
pet_type = PetType.find(params[:pet_type_id], :select => [:body_id, :species_id])
|
pet_type = PetType.find(params[:pet_type_id])
|
||||||
|
|
||||||
@swf_assets = SwfAsset.object_assets.includes_depth.
|
@swf_assets = SwfAsset.object_assets.includes_depth.
|
||||||
fitting_body_id(pet_type.body_id).
|
fitting_body_id(pet_type.body_id).
|
||||||
|
|
Loading…
Reference in a new issue