app/controllers/digital_assets_controller.rb in daengine-0.3.9 vs app/controllers/digital_assets_controller.rb in daengine-0.3.9.1
- old
+ new
@@ -35,9 +35,11 @@
DigitalAsset::ContentType::SEMIANNUAL_REPORT,
DigitalAsset::ContentType::FACTSHEET,
DigitalAsset::ContentType::COMMENTARY
]}
@digital_assets = search_da(fund_doctypes)
+ # remove anything that doesn't have a fundcode
+ @digital_assets = @digital_assets.reject {|da| da.fund_code.nil?}
respond_with(@digital_assets)
end
def sync_assets
time0 = Rails.cache.read(CACHE_LAST_PARSE_TIME)