How do I group named scopes? For example, I have two models, User and Activity. A user can have many activities.
Activity has two named scopes:
Activity.ordered_by_created_at
Activity.top_20
I want to create a new named scope Activity.recent
such that
Activity.recent == Activity.ordered_by_created_at.top_20
That way, I can call recent on user.activities
.
user.activities.recent
Is this possible? Thanks.