Skip to content

Commit

Permalink
Use names, not index
Browse files Browse the repository at this point in the history
  • Loading branch information
dorner committed May 22, 2024
1 parent b7a12d0 commit e2fe2a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ def random_record_for_org(org, klass)
pdx_org.items.each_with_index do |item, i|
if item.name == 'Pads'
%w(box pack).each { |name| item.request_units.create!(name: name) }
elsif i == 0
elsif item.name == 'Wipes (Baby)'
item.request_units.create!(name: 'pack')
elsif i == 1
elsif item.name == 'Kids Pull-Ups (5T-6T)'
%w(pack flat).each do |name|
item.request_units.create!(name: name)
end
Expand Down

0 comments on commit e2fe2a3

Please sign in to comment.