0

如何在没有分页的情况下在单个页面中列出所有记录。现在我没有使用限制来获取选定的记录,但它在一个页面中只返回 20 条记录。

如何从我的查询中删除限制以检索所有记录?

更新

def collection
 @users ||= apply_scopes(User).where(status: 'ACTIVE').order(sort_column + " " + sort_direction).includes(:replies)
end
4

0 回答 0