[#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)
|
||||
|
||||
mapping = Class.new(Tasks::DossierProcedureMigrator::ChampMapping) do
|
||||
def initialize(source_procedure, destination_procedure)
|
||||
super
|
||||
setup_champ_mapping
|
||||
end
|
||||
|
||||
def setup_champ_mapping
|
||||
def setup_mapping
|
||||
siret_order_place = 2
|
||||
fonction_order_place = 9
|
||||
zone_geographique_header_order_place = 18
|
||||
|
|
|
@ -12,6 +12,8 @@ module Tasks
|
|||
@source_to_destination_mapping = {}
|
||||
@source_champs_to_discard = Set[]
|
||||
@destination_champ_computations = []
|
||||
|
||||
setup_mapping
|
||||
end
|
||||
|
||||
def check_source_destination_champs_consistency
|
||||
|
|
Loading…
Reference in a new issue