solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::Promotion::Actions::CreateAdjustment#perform
Creates the adjustment related to a promotion for the order passed through options hash Returns `true` if an adjustment is applied to an order, `false` if the promotion has already been applied.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open legacy_promotions/app/models/spree/promotion/actions/create_adjustment.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--Promotion--Actions--CreateAdjustment-perform-for-pr
# Commit to gitgit add legacy_promotions/app/models/spree/promotion/actions/create_adjustment.rbgit commit -m "better docs for Spree::Promotion::Actions::CreateAdjustment#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--Promotion--Actions--CreateAdjustment-perform-for-pr
hub pull-request
# Celebrate!