solidus icon indicating copy to clipboard operation
solidus copied to clipboard

Ensure `Spree::Country.available` and `Zone#country_list` consistently return AR relations

Open elia opened this issue 2 years ago • 0 comments

Summary

Being able to depend on AR::Relation makes the methods more adaptable and efficient, allowing it to be embedded in other queries minimizing the roundtrips to the database.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

elia avatar Nov 06 '23 16:11 elia