projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added support for voting in QuickVotes.
[selectricity-live]
/
app
/
models
/
quick_voter.rb
diff --git a/app/models/quick_voter.rb
b/app/models/quick_voter.rb
new file mode 100644
(file)
index 0000000..
7b934a3
--- /dev/null
+++ b/
app/models/quick_voter.rb
@@ -0,0
+1,4
@@
+class QuickVoter < Voter
+ validates_presence_of :session_id
+ validates_uniqueness_of :session_id
+end
Benjamin Mako Hill
||
Want to submit a patch?