working quickvote support created
[selectricity-live] / app / models / vote.rb
index 7678f5463900034de67c6ff2dff60c2d281a059c..08dd1e7dd2c393bd2580eee0a02319d468a29265 100644 (file)
@@ -41,6 +41,11 @@ class Vote < ActiveRecord::Base
       self.rankings << ranking
     end
   end
+  
+  def destroy
+    self.destroy_rankings
+    super
+  end
 
   def destroy_rankings 
     rankings.each { |ranking| ranking.destroy }

Benjamin Mako Hill || Want to submit a patch?