Merge pull request #4907 from goobertron/poll_i18n_fix
Fix missing translation in #4905
This commit is contained in:
commit
5c8d615b67
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
other_participations = PollParticipation.where(author_id: self.author.id, poll_id: self.poll.id).to_a-[self]
|
||||||
if other_participations.present?
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue