Closed plantfansam closed 9 years ago
Person.party("party_name")
Person.for_congress(congress_number)
The latter is not pretty — ideally a scope on one model wouldn't be filtering based on the attributes of its relation— but it's necessary to keep the filtering implementation simple.
Person.party("party_name")
Person.for_congress(congress_number)
The latter is not pretty — ideally a scope on one model wouldn't be filtering based on the attributes of its relation— but it's necessary to keep the filtering implementation simple.