refactor: before_action

This commit is contained in:
simon lehericey 2022-07-11 17:24:39 +02:00
parent 2df9d8ba98
commit 5bee34cc34

View file

@ -1,7 +1,6 @@
module Administrateurs
class TypesDeChampController < AdministrateurController
before_action :retrieve_procedure, only: [:create, :update, :move, :move_up, :move_down, :destroy]
before_action :procedure_revisable?, only: [:create, :update, :move, :move_up, :move_down, :destroy]
before_action :retrieve_procedure, :procedure_revisable?
def create
type_de_champ = @procedure.draft_revision.add_type_de_champ(type_de_champ_create_params)