Merge pull request #4907 from goobertron/poll_i18n_fix

Fix missing translation in #4905
This commit is contained in:
Jonne Haß 2014-04-05 19:16:06 +02:00
commit 5c8d615b67

View file

@ -45,7 +45,7 @@ class PollParticipation < ActiveRecord::Base
other_participations = PollParticipation.where(author_id: self.author.id, poll_id: self.poll.id).to_a-[self]
if other_participations.present?
self.errors.add(:poll, I18n.t("activerecord.errors.models.poll_participations.attributes.poll.already_participated"))
self.errors.add(:poll, I18n.t("activerecord.errors.models.poll_participation.attributes.poll.already_participated"))
end
end