projects
/
selectricity
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge my branch, which properly implements casting quickvotes
[selectricity]
/
app
/
models
/
voter.rb
1
class Voter < ActiveRecord::Base
2
belongs_to :election
3
has_one :vote
4
5
def destroy
6
vote.destroy if vote
7
super
8
end
9
10
def voted?
11
vote.confirmed == 1
12
end
13
end
14
15
Benjamin Mako Hill
||
Want to submit a patch?