]> projects.mako.cc - selectricity-live/blobdiff - app/models/voter.rb
* Add a few testcases for checking for nonexistent things
[selectricity-live] / app / models / voter.rb
index 44efee6e1aa7a0e7b49391955202e82d91e195b9..f229909814c12fbd51beeb120061661ef87a67ec 100644 (file)
@@ -7,7 +7,9 @@ class Voter < ActiveRecord::Base
     super
   end
 
     super
   end
 
+  def voted?
+    vote.confirmed == 1
+  end
 end
 
 
 end
 
 
-

Benjamin Mako Hill || Want to submit a patch?