sunlightlabs / opencongress

An open website for opening Congress.
http://www.opencongress.org
GNU General Public License v3.0
48 stars 16 forks source link

Update role#member_of_congress? logic and add two scopes to Person #495

Closed plantfansam closed 9 years ago

plantfansam commented 9 years ago

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.