solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Variant::PricingOptions#cache_key
Since the current pricing options determine the price to be shown to users, product pages have to be cached and their caches invalidated using the data from this object. This method makes it easy to use with Rails `cache` helper.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/variant/pricing_options.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Variant--PricingOptions-cache_key-for-pr
# Commit to gitgit add core/app/models/spree/variant/pricing_options.rbgit commit -m "better docs for Spree::Variant::PricingOptions#cache_key"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--Variant--PricingOptions-cache_key-for-pr
hub pull-request
# Celebrate!