Use the new merge with multiple arguments

This commit is contained in:
gregoirenovel 2018-12-24 16:46:11 +01:00 committed by Mathieu Magnin
parent 6ae5ffb2c6
commit 27460b55a3

View file

@ -7,10 +7,11 @@ class ApiEntrepriseService
association_params = ApiEntreprise::RNAAdapter.new(siret, procedure_id).to_params
exercices_params = ApiEntreprise::ExercicesAdapter.new(siret, procedure_id).to_params
etablissement_params
.merge(entreprise_params)
.merge(association_params)
.merge(exercices_params)
etablissement_params.merge(
entreprise_params,
association_params,
exercices_params
)
end
end
end