how can I make sure that ‘customer_student’ won’t be pushed twice to the
hash in the following example ?
@potential_course_students =  @selected_customers.each do |customer| customer.customer_student.each do |customer_student| if customer_student.display_name.include?(params[:term]) && ! @potential_course_students.include?(customer_student) @potential_course_attendees << customer_student end end end unless params[:term].blank?
appreciate any help.