refactor(routing): remove unused routing_params

This commit is contained in:
simon lehericey 2023-04-07 22:39:28 +02:00
parent 86733248f3
commit 3889bdac73

View file

@ -24,11 +24,11 @@ module Administrateurs
end end
def targeted_champ def targeted_champ
Logic.from_json(routing_params[:targeted_champ]) Logic.from_json(params[:targeted_champ])
end end
def value def value
Logic.from_json(routing_params[:value]) Logic.from_json(params[:value])
end end
def groupe_instructeur def groupe_instructeur
@ -36,15 +36,11 @@ module Administrateurs
end end
def groupe_instructeur_id def groupe_instructeur_id
routing_params[:groupe_instructeur_id] params[:groupe_instructeur_id]
end end
def defaut_groupe_instructeur_id def defaut_groupe_instructeur_id
routing_params[:defaut_groupe_instructeur_id] params[:defaut_groupe_instructeur_id]
end
def routing_params
params.permit(:targeted_champ, :value, :groupe_instructeur_id, :defaut_groupe_instructeur_id)
end end
end end
end end