poll has_many voters

This commit is contained in:
Juanjo Bazán
2017-01-25 12:18:15 +01:00
parent 900563e31c
commit 8f235c25d3

View File

@@ -1,7 +1,7 @@
class Poll < ActiveRecord::Base
has_many :booth_assignments, class_name: "Poll::BoothAssignment"
has_many :booths, through: :booth_assignments
has_many :voters, through: :booth_assignments
has_many :voters
has_many :officer_assignments, through: :booth_assignments
has_many :officers, through: :officer_assignments
has_many :questions