eager_load for expert
This commit is contained in:
parent
2325023b1a
commit
e7945594cf
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class User < ApplicationRecord
|
||||||
|
|
||||||
accepts_nested_attributes_for :france_connect_information
|
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) }
|
before_validation -> { sanitize_email(:email) }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue