solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::LineItem#set_pricing_attributes
Set price, cost_price and currency. This method used to be called #copy_price, but actually did more than just setting the price, hence renamed to #set_pricing_attributes
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/line_item.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--LineItem-set_pricing_attributes-for-pr
# Commit to gitgit add core/app/models/spree/line_item.rbgit commit -m "better docs for Spree::LineItem#set_pricing_attributes"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--LineItem-set_pricing_attributes-for-pr
hub pull-request
# Celebrate!