tech(doc): explain which columns are ilikable for user/individual
This commit is contained in:
parent
51ce0cd562
commit
b30cbf3032
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ class ProcedurePresentation < ApplicationRecord
|
|||
.includes(:followers_instructeurs)
|
||||
.joins('INNER JOIN users instructeurs_users ON instructeurs_users.id = instructeurs.user_id')
|
||||
.filter_ilike('instructeurs_users', :email, values) # ilike OK, user may want to search by *@domain
|
||||
when 'user', 'individual'
|
||||
when 'user', 'individual' # user_columns: [email], individual_columns: ['nom', 'prenom', 'gender']
|
||||
dossiers
|
||||
.includes(table)
|
||||
.filter_ilike(table, column, values) # ilike or where column == 'value' are both valid, we opted for ilike
|
||||
|
|
Loading…
Reference in a new issue