Move transform_keys calls directly to #process_params methods

This commit is contained in:
gregoirenovel 2018-03-19 15:41:20 +01:00
parent a3fd271b00
commit 5d188c191d
5 changed files with 22 additions and 22 deletions

View file

@ -8,8 +8,8 @@ class ApiEntrepriseService
exercices_params = ApiEntreprise::ExercicesAdapter.new(siret, procedure_id).to_params
params = etablissement_params
.merge(entreprise_params.transform_keys { |k| "entreprise_#{k}" })
.merge(association_params.transform_keys { |k| "association_#{k}" })
.merge(entreprise_params)
.merge(association_params)
.merge(exercices_params)
params