solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Zone.match
Returns the most specific matching zone for an address. Specific means: A State zone wins over a country zone, and a zone with few members wins over one with many members. If there is no match, returns nil.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/zone.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Zone-match-for-pr
# Commit to gitgit add core/app/models/spree/zone.rbgit commit -m "better docs for Spree::Zone.match"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Zone-match-for-pr
hub pull-request
# Celebrate!