Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmayur001 committed Dec 2, 2024
1 parent 9bf8919 commit 3eac54b
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions sample/db/samples/taxons.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Spree::Sample.load_sample("products")

categories = Spree::Taxonomy.find_by!(name: "Categories")
brands = Spree::Taxonomy.find_by!(name: "Brands")

products = {
solidus_bottles: "Solidus Water Bottle",
Expand All @@ -25,6 +26,10 @@
end

taxons = [
{
name: "Categories",
taxonomy: categories,
},
{
name: "Brands",
taxonomy: brands
Expand All @@ -49,14 +54,6 @@
products[:solidus_cap]
]
},
{
name: "Categories",
taxonomy: categories,
},
{
name: "Brands",
taxonomy: brands,
},
{
name: "Solidus",
taxonomy: categories,
Expand Down

0 comments on commit 3eac54b

Please sign in to comment.