How do you scope ActiveRecord associations in Rails 3?
I have a Rails 3 project.With Rails 3 came Arel and the ability to reuse one sc开发者_开发百科ope to build another.I am wondering if there is a way to use scopes when defining a relationship (e.g. a \
问答
阅读(2)