instructeurs: replace calls to Instructeur.find_by(email: …)
This commit is contained in:
parent
c14dc7ad64
commit
cd478b489e
9 changed files with 15 additions and 11 deletions
|
@ -13,7 +13,7 @@ class Admin::InstructeursController < AdminController
|
|||
|
||||
def create
|
||||
email = params[:instructeur][:email].downcase
|
||||
@instructeur = Instructeur.find_by(email: email)
|
||||
@instructeur = Instructeur.by_email(email)
|
||||
procedure_id = params[:procedure_id]
|
||||
|
||||
if @instructeur.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue