|
|
1
2
首先,很好的问题——我不知道命名范围的特性!以下对我有效:
你可以通过
|
|
|
2
0
好得多: http://tuxicity.se/rails/dry/2009/01/04/share-named-scopes-in-rails.html
保存在你的手中
|
|
|
Zack Herbert · 按案例排序条款的范围工作不正常 8 年前 |