validates user has not already voted
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
class Poll < ActiveRecord::Base
|
||||
end
|
||||
has_many :booths
|
||||
has_many :voters, through: :booths, class_name: "Poll::Voter"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user