[#2772] Avoid overriding initialize in subclasses
This commit is contained in:
parent
6a3f7438d5
commit
f7fcf46f0d
2 changed files with 3 additions and 6 deletions
|
@ -9,12 +9,7 @@ namespace :'2018_07_31_nutriscore' do
|
||||||
destination_procedure = Procedure.find(destination_procedure_id)
|
destination_procedure = Procedure.find(destination_procedure_id)
|
||||||
|
|
||||||
mapping = Class.new(Tasks::DossierProcedureMigrator::ChampMapping) do
|
mapping = Class.new(Tasks::DossierProcedureMigrator::ChampMapping) do
|
||||||
def initialize(source_procedure, destination_procedure)
|
def setup_mapping
|
||||||
super
|
|
||||||
setup_champ_mapping
|
|
||||||
end
|
|
||||||
|
|
||||||
def setup_champ_mapping
|
|
||||||
siret_order_place = 2
|
siret_order_place = 2
|
||||||
fonction_order_place = 9
|
fonction_order_place = 9
|
||||||
zone_geographique_header_order_place = 18
|
zone_geographique_header_order_place = 18
|
||||||
|
|
|
@ -12,6 +12,8 @@ module Tasks
|
||||||
@source_to_destination_mapping = {}
|
@source_to_destination_mapping = {}
|
||||||
@source_champs_to_discard = Set[]
|
@source_champs_to_discard = Set[]
|
||||||
@destination_champ_computations = []
|
@destination_champ_computations = []
|
||||||
|
|
||||||
|
setup_mapping
|
||||||
end
|
end
|
||||||
|
|
||||||
def check_source_destination_champs_consistency
|
def check_source_destination_champs_consistency
|
||||||
|
|
Loading…
Add table
Reference in a new issue