Show only unique conference participants

This commit is contained in:
Petko Bordjukov 2016-10-09 04:00:52 +03:00
parent 72a2057673
commit 14776a3d99
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Conference < ActiveRecord::Base
has_many :volunteer_teams has_many :volunteer_teams
has_many :volunteers has_many :volunteers
has_one :call_for_participation, dependent: :destroy has_one :call_for_participation, dependent: :destroy
has_many :participants, class_name: 'User', through: :events has_many :participants, -> { uniq }, class_name: 'User', through: :events
has_many :participant_profiles, class_name: 'PersonalProfile' has_many :participant_profiles, class_name: 'PersonalProfile'
has_many :slots, through: :halls has_many :slots, through: :halls