Merge pull request #1966 from betagouv/api-entreprise

Simplify ApiEntrepriseService even further
This commit is contained in:
gregoirenovel 2018-05-24 18:16:59 +02:00 committed by GitHub
commit b60c3b551b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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