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
def targeted_champ
Logic.from_json(routing_params[:targeted_champ])
Logic.from_json(params[:targeted_champ])
end
def value
Logic.from_json(routing_params[:value])
Logic.from_json(params[:value])
end
def groupe_instructeur
@ -36,15 +36,11 @@ module Administrateurs
end
def groupe_instructeur_id
routing_params[:groupe_instructeur_id]
params[:groupe_instructeur_id]
end
def defaut_groupe_instructeur_id
routing_params[:defaut_groupe_instructeur_id]
end
def routing_params
params.permit(:targeted_champ, :value, :groupe_instructeur_id, :defaut_groupe_instructeur_id)
params[:defaut_groupe_instructeur_id]
end
end
end