如果查询结果有不想要的默认排序时,使用reorder()方式处理
User.all.reorder("").order("name")
Ruby清空默认排序
猜你喜欢
转载自wangsir-81.iteye.com/blog/2215209
今日推荐
周排行