lib/updateagent/updaters/people_updater.rb in onebody-updateagent-0.4.2 vs lib/updateagent/updaters/people_updater.rb in onebody-updateagent-0.4.3

- old
+ new

@@ -17,25 +17,24 @@ person, family = split_change_hash(row) if existing_family = family_data[family['legacy_id']] person['family'] = existing_family if person.has_key?('email') person['email_changed'] = false - @attributes << 'email_changed' end person_data << person else person['family'] = family if person.has_key?('email') person['email_changed'] = false - @attributes << 'email_changed' end person_data << person family['barcode_id_changed'] = false if family.has_key?('barcode_id') family_data[family['legacy_id']] = family end print "splitting family record #{index+1}\r" end puts + @attributes << 'email_changed' if @attributes.include?('email') @data = person_data @attributes.reject! { |a| a =~ /^family_/ and a != 'family_id' } @family_agent = FamilyUpdater.new(family_data.values, @options) end