BACKGROUND: I have a Team model which has_many Players, which allows for one to call
@team.players
and receive a Mongoid::Relations::Targets::Enumerable list of Players back.
OBJECTIVE: I'd like to also be able to retrieve a list of players at a specific position on a team. For instance, if a user adds a pitcher to his team, I'd be able to call
@team.pitchers
to return an Enumerable list of pitchers. Any ideas on how to set this up?