improve request to find an expert
This commit is contained in:
parent
5e0cfbea07
commit
5e88ecc24c
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ class Avis < ApplicationRecord
|
||||||
if claimant_type == 'Instructeur' || !tmp_expert_migrated
|
if claimant_type == 'Instructeur' || !tmp_expert_migrated
|
||||||
Instructeur.find(claimant_id)
|
Instructeur.find(claimant_id)
|
||||||
else
|
else
|
||||||
Expert.find(claimant_id).user.expert
|
Expert.find(claimant_id)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue