Merge pull request #3581 from consul/duplicate_translations

Avoid duplicate records using translations
This commit is contained in:
Javier Martín
2019-06-06 13:08:05 +02:00
committed by GitHub
13 changed files with 138 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ class Poll
end
def self.available
where(polls: { id: Poll.current_or_recounting }).joins(polls: :translations)
where(polls: { id: Poll.current_or_recounting }).joins(:polls)
end
def assignment_on_poll(poll)