Simplify ApiEntrepriseService even further

This commit is contained in:
gregoirenovel 2018-05-17 17:10:46 +02:00
parent c38705a890
commit 3eab48c699

View file

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