aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/widget_vote.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/widget_vote.rb')
-rw-r--r--app/models/widget_vote.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/widget_vote.rb b/app/models/widget_vote.rb
index 33697f0fb..021c38b30 100644
--- a/app/models/widget_vote.rb
+++ b/app/models/widget_vote.rb
@@ -15,4 +15,5 @@ class WidgetVote < ActiveRecord::Base
attr_accessible :cookie
validates :cookie, :length => { :is => 20 }
+ validates_uniqueness_of :cookie, :scope => :info_request_id
end