]>
projects.mako.cc - selectricity-live/blobdiff - app/models/voter.rb
belongs_to :election
has_one :vote
+ def destroy
+ vote.destroy if vote
+ super
+ end
+
+ def voted?
+ vote.confirmed == 1
+ end
end
-
Benjamin Mako Hill || Want to submit a patch?