diff --git a/app/models/poll_participation.rb b/app/models/poll_participation.rb index 3e1f7c368..5a5c472dd 100644 --- a/app/models/poll_participation.rb +++ b/app/models/poll_participation.rb @@ -9,6 +9,7 @@ class PollParticipation < ActiveRecord::Base belongs_to :author, :class_name => 'Person', :foreign_key => :author_id xml_attr :diaspora_handle xml_attr :poll_answer_guid + xml_convention :underscore validate :not_already_participated after_commit :update_vote_counter, :on => :create