models = Model.joins("inner join manufs_models on manufs_models.manuf_id = 3 or manufs_models.manuf_id = 5 or manufs_models.manuf_id = 9 or manufs_models.manuf_id = 10")
我怎样才能简明扼要地写出来?
答案 0 :(得分:1)
这更简洁:
models = Model.joins("inner join manufs_models on manufs_models.manuf_id IN (3,5,9,10)")