]> projects.mako.cc - selectricity-live/blob - app/models/voter.rb
62466755db4790175cfbc3e1712872ab8ba4698a
[selectricity-live] / app / models / voter.rb
1 class Voter < ActiveRecord::Base
2   belongs_to :election
3   has_one :vote
4
5   def destroy
6     vote.destroy if vote
7     super
8   end
9 end
10
11

Benjamin Mako Hill || Want to submit a patch?