]> projects.mako.cc - selectricity-live/blobdiff - app/models/quick_vote.rb
fixed the string modification function and added support for a titlecase method
[selectricity-live] / app / models / quick_vote.rb
index d6ab55b124dd2daa328b7452c80880975b553a31..fba31a8e9678f9e5953c3226486b70d9a949ebfa 100644 (file)
@@ -19,6 +19,7 @@ class QuickVote < Election
     self.enddate =  DateTime.now + 30
     self.active = 1
     self.anonymous = 1
+    self.quickvote = 1
   end
 
   def candidatelist=(candstring='')
@@ -34,11 +35,7 @@ class QuickVote < Election
   end
 
   def reviewed?
-    if reviewed.to_i == 1
-      return true
-    else
-      false
-    end
+    reviewed.to_i == 1
   end
 
   def create_candidates

Benjamin Mako Hill || Want to submit a patch?