]> projects.mako.cc - selectricity-live/blobdiff - app/models/voter.rb
Modified QuickVote table to work by object type and not by the weird
[selectricity-live] / app / models / voter.rb
old mode 100644 (file)
new mode 100755 (executable)
index 44efee6..f229909
@@ -7,7 +7,9 @@ class Voter < ActiveRecord::Base
     super
   end
 
+  def voted?
+    vote.confirmed == 1
+  end
 end
 
 
-

Benjamin Mako Hill || Want to submit a patch?