eager_load for expert

This commit is contained in:
kara Diaby 2021-02-28 22:19:22 +01:00
parent 2325023b1a
commit e7945594cf

View file

@ -53,7 +53,7 @@ class User < ApplicationRecord
accepts_nested_attributes_for :france_connect_information
default_scope { eager_load(:instructeur, :administrateur) }
default_scope { eager_load(:instructeur, :administrateur, :expert) }
before_validation -> { sanitize_email(:email) }