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

Benjamin Mako Hill || Want to submit a patch?