Use helpers rather then view_context
This commit is contained in:
parent
ff9afa69e2
commit
e2f13a8b73
6 changed files with 8 additions and 8 deletions
|
@ -45,7 +45,7 @@ class Admin::ProceduresController < AdminController
|
|||
procedure = current_administrateur.procedures.find(params[:id])
|
||||
procedure.hide!
|
||||
|
||||
flash.notice = "Démarche supprimée, en cas d'erreur #{view_context.contact_link('contactez nous', tags: 'démarche supprimée')}"
|
||||
flash.notice = "Démarche supprimée, en cas d'erreur #{helpers.contact_link('contactez nous', tags: 'démarche supprimée')}"
|
||||
redirect_to admin_procedures_draft_path
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue