From 8bfdfff81336fa500881652097d35ab108376b3b Mon Sep 17 00:00:00 2001 From: Wojtek Kruszewski Date: Mon, 13 May 2024 06:07:00 -0400 Subject: [PATCH] Add note about Array.wrap --- lib/netsuite/records/item_availability.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/netsuite/records/item_availability.rb b/lib/netsuite/records/item_availability.rb index 7d292e6e..2cce6089 100644 --- a/lib/netsuite/records/item_availability.rb +++ b/lib/netsuite/records/item_availability.rb @@ -30,6 +30,7 @@ def self.get_item_availability(ref_list, credentials={}) return false end if result[:item_availability_list] + # TODO: switch to Array.wrap when support for Ruby < 3.0 is dropped rows = result[:item_availability_list][:item_availability] unless rows.respond_to?(:to_ary) rows = [rows]