Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Use `load` instead of `require` when loading seeds

Felipe Zavan13fff4e477b8
diff --git a/core/lib/tasks/core.rake b/core/lib/tasks/core.rake
index dcf36b8999..27454d517e 100644
--- a/core/lib/tasks/core.rake
+++ b/core/lib/tasks/core.rake
@@ -8,7 +8,7 @@ use rake db:load_file[/absolute/path/to/sample/filename.rb]}
file = Pathname.new(args.file)
puts "loading ruby #{file}"
- require file
+ load file
end
desc 'Loads fixtures from the the dir you specify using rake db:load_dir[loadfrom]'