How to order a filtered query? Ruby on Rials

前端 未结 0 1494
天命终不由人
天命终不由人 2021-01-25 07:02

I have an Expense model that may belong to multiple Group models.

I\'ve written a query to find the Expenses that have a group:
Expense.all.includes(:groups).

相关标签:
回答
  • 消灭零回复
提交回复
热议问题