def seed_with_undo
      if r = SeedFuNdo.recorder
        r.record self

        # return existing records in case they are processed by the caller
        @data.map { |record_data| find_record(record_data) }
      else
        seed_without_undo
      end
    end
def seed_with_undo
      if r = SeedFuNdo.recorder
        r.record self

        # return existing records in case they are processed by the caller
        @data.map { |record_data| find_record(record_data) }
      else
        seed_without_undo
      end
    end
Record instead of inserting the data if in recording mode.