diff --git a/app/models/vote.rb b/app/models/vote.rb index ad42945..81eb208 100644 --- a/app/models/vote.rb +++ b/app/models/vote.rb @@ -18,6 +18,8 @@ class Vote < ActiveRecord::Base named_scope :with_voter_ids, lambda { |*args| {:conditions => {:voter_id=> args.first }} } named_scope :active, :include => :choice, :conditions => { 'choices.active' => true } + serialize :tracking + after_create :update_winner_choice, :update_loser_choice def update_winner_choice -- libgit2 0.21.2