validates user has not already voted
This commit is contained in:
4
app/models/poll.rb
Normal file
4
app/models/poll.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class Poll < ActiveRecord::Base
|
||||
has_many :booths
|
||||
has_many :voters, through: :booths, class_name: "Poll::Voter"
|
||||
end
|
||||
Reference in New Issue
Block a user