[#2772] Avoid overriding initialize in subclasses

This commit is contained in:
Frederic Merizen 2018-10-09 20:09:13 +02:00
parent 6a3f7438d5
commit f7fcf46f0d
2 changed files with 3 additions and 6 deletions

View file

@ -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

View file

@ -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