self.rankings << ranking
end
end
+
+ def destroy
+ self.destroy_rankings
+ super
+ end
def destroy_rankings
rankings.each { |ranking| ranking.destroy }
self.votes = rel_votes.collect { |vote| candidate_ids[ vote - 1 ] }
end
+ def votestring
+ self.votes.join("")
+ end
+
end