标签: ruby-on-rails join activerecord include
我有点偏偏包含方法的代码,我想获得相同的输出,但是要加上joins(由于性能原因)。有什么想法吗?
procedure_search_model.includes(:translations, character_codes: [code: :character_codes])