solidus

https://github.com/solidusio/solidus

Ruby

🛒 Solidus, the open-source eCommerce framework for industry trailblazers.

Spree::ReimbursementType::ReimbursementHelpers#create_credit

If you have multiple methods of crediting a customer, overwrite this method
Must return an array of objects the respond to #description, #display_amount

Source | Google | Stack overflow

Edit

git clone [email protected]:solidusio/solidus.git

cd solidus

open core/app/models/spree/reimbursement_type/reimbursement_helpers.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Spree--ReimbursementType--ReimbursementHelpers-create_credit-for-pr


# Commit to git

git add core/app/models/spree/reimbursement_type/reimbursement_helpers.rbgit commit -m "better docs for Spree::ReimbursementType::ReimbursementHelpers#create_credit"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Spree--ReimbursementType--ReimbursementHelpers-create_credit-for-pr

hub pull-request


# Celebrate!