0
升級到MongoID 5我得到這個錯誤後未定義的方法`[]' 爲#MongoID 5彙總:NoMethodError:未定義的方法`[] ': NoMethodError:用於聚合
的代碼如下所示:
result = ::Presentation::Interaction.collection.aggregate(
[
user_match_criterias_live(conference),
::Presentation::ReportGenerator::DELCOUNTRY_AGGREGATION
]
)
return 0 if (result.count < 1)
return result[0]["total"]
因此,聚合已經使用數組作爲參數。