projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
working quickvote support created
[selectricity-live]
/
app
/
models
/
vote.rb
diff --git
a/app/models/vote.rb
b/app/models/vote.rb
index 7678f5463900034de67c6ff2dff60c2d281a059c..08dd1e7dd2c393bd2580eee0a02319d468a29265 100644
(file)
--- a/
app/models/vote.rb
+++ b/
app/models/vote.rb
@@
-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?