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
|
|
@ -11,7 +11,7 @@ module Admin
|
|||
end
|
||||
|
||||
def show
|
||||
@registrations = @conference.registrations.joins(:qanswers).uniq
|
||||
@registrations = @conference.registrations.joins(:qanswers).distinct
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ module Admin
|
|||
if current_user.has_role? :organization_admin, :any
|
||||
@conferences_with_role = Organization.with_role('organization_admin', current_user).map { |org| org.conferences.pluck :short_title }.flatten
|
||||
end
|
||||
@conferences_with_role.uniq!
|
||||
@conferences_with_role.distinct!
|
||||
|
||||
return if @conference.blank?
|
||||
@versions = PaperTrail::Version.where(conference_id: @conference.id).accessible_by(current_ability)
|
||||
|
|
|
|||
|
|
@ -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