change uniq to distinct for SQL queries to fix deprecation
This commit is contained in:
parent
2180e6197c
commit
ba9d19c832
9 changed files with 9 additions and 9 deletions
|
|
@ -14,7 +14,7 @@ module Admin
|
|||
def show
|
||||
if can_manage_volunteers?(@conference)
|
||||
@volunteers = if @conference.use_vpositions
|
||||
@conference.registrations.joins(:vchoices).uniq
|
||||
@conference.registrations.joins(:vchoices).distinct
|
||||
else
|
||||
@conference.registrations.where(volunteer: true)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue