Rails 3 中的default_scope
我知道named_scope已更改为rails 3中的范围。
如何在rails 3中执行default_scope,我进行了很好的谷歌搜索,但没有找到默认范围的任何内容。
I know named_scope has been changed to scope in rails 3.
How do I perform default_scope in rails 3, I've had a good google but found nothing for defaults scopes.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

default_scope 在 Rails 3.0 中可用,请参阅以下内容
default_scope is available in Rails 3.0, see the following