Skip to content

Commit

Permalink
Code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmayur001 committed Dec 2, 2024
1 parent c95c7b2 commit 03aba31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
11 changes: 0 additions & 11 deletions sample/db/samples/products.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,6 @@
height: 20,
width: 10,
depth: 5
},
{
name: "Solidus laptop",
tax_category:,
shipping_category:,
price: 18.99,
eur_price: 20,
weight: 10,
height: 20,
width: 10,
depth: 5
}
]

Expand Down
13 changes: 2 additions & 11 deletions sample/db/samples/taxons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
solidus_long_sleeve_tee: "Solidus long sleeve tee",
solidus_dark_tee: "Solidus dark tee",
solidus_canvas_tote: "Solidus canvas tote bag",
solidus_cap: "Solidus cap",
solidus_laptop: "Solidus laptop"
solidus_cap: "Solidus cap"
}

products.each do |key, name|
Expand Down Expand Up @@ -87,19 +86,11 @@
},
{
name: "Hoodies",
taxonomy: categories,
taxonomy: brands,
parent: "Clothing",
products: [
products[:solidus_hoodie],
]
},
{
name: "Laptop",
taxonomy: brands,
parent: "Brands",
products: [
products[:solidus_laptop]
]
}
]

Expand Down

0 comments on commit 03aba31

Please sign in to comment.