Skip to content

Commit

Permalink
Add note about Array.wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
wkrsz committed May 13, 2024
1 parent 01cc5e8 commit 8bfdfff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/netsuite/records/item_availability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8bfdfff

Please sign in to comment.