solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::VariantPropertyRule#applies_to_variant?
Checks whether the rule applies to the variant by checking the rule's conditions against the variant's option values.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/variant_property_rule.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--VariantPropertyRule-applies_to_variant--for-pr
# Commit to gitgit add core/app/models/spree/variant_property_rule.rbgit commit -m "better docs for Spree::VariantPropertyRule#applies_to_variant?"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--VariantPropertyRule-applies_to_variant--for-pr
hub pull-request
# Celebrate!