Files
nairobi/app/models/poll.rb
2016-09-19 18:48:18 +02:00

4 lines
118 B
Ruby

class Poll < ActiveRecord::Base
has_many :booths
has_many :voters, through: :booths, class_name: "Poll::Voter"
end