mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
It's best practice to use the ApplicationRecord. But when Rake is loaded, our application is not loaded yet and the ApplicationRecord class wasn't available yet. Requiring within the task solves the problem because Rake loads the Rails environment before executing this task. I also removed the unused highline loading.