Simplify SIRETService#fetch
This commit is contained in:
parent
4b6b583120
commit
7794973774
1 changed files with 7 additions and 8 deletions
|
@ -16,16 +16,15 @@ class SIRETService
|
||||||
|
|
||||||
# This is to fill legacy models and relationships
|
# This is to fill legacy models and relationships
|
||||||
if dossier.present?
|
if dossier.present?
|
||||||
params.merge(
|
params[:entreprise_attributes] = entreprise_params.merge(
|
||||||
entreprise_attributes: entreprise_params
|
{
|
||||||
.merge({
|
dossier: dossier,
|
||||||
dossier: dossier,
|
rna_information_attributes: association_params
|
||||||
rna_information_attributes: association_params
|
}.compact
|
||||||
}.compact)
|
|
||||||
)
|
)
|
||||||
else
|
|
||||||
params
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
params
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue