solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::PromotionAction#perform
Updates the state of the order or performs some other action depending on the subclass options will contain the payload from the event that activated the promotion. This will include the key :user which allows user based actions to be performed in addition to actions on the order
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open legacy_promotions/app/models/spree/promotion_action.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--PromotionAction-perform-for-pr
# Commit to gitgit add legacy_promotions/app/models/spree/promotion_action.rbgit commit -m "better docs for Spree::PromotionAction#perform"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--PromotionAction-perform-for-pr
hub pull-request
# Celebrate!