Files
grecia/app/models/poll.rb
2016-11-14 13:52:38 +01:00

5 lines
119 B
Ruby

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