]> projects.mako.cc - selectricity-live/blobdiff - app/models/vote.rb
Install sitealizer stats
[selectricity-live] / app / models / vote.rb
index f263a75bb687d332527bc5ce938ada35ab4eb9b2..62944e3301a5b6f07f77f475e1ef85ae8d314cc6 100644 (file)
@@ -8,6 +8,8 @@ class Vote < ActiveRecord::Base
   after_update :save_rankings
   before_destroy :destroy_rankings
 
+  
+
   def to_s
     votes.join("")
   end
@@ -51,6 +53,11 @@ class Vote < ActiveRecord::Base
     rankings.each { |ranking| ranking.destroy }
   end
 
+  def settime
+    self.time = Time.now
+    self.save
+  end
+
   def confirm!
     self.confirmed = 1
     self.save

Benjamin Mako Hill || Want to submit a patch?