solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::OrderMerger#handle_merge
Merge the `other_order_line_item` into `current_line_item` If `current_line_item` is nil, the `other_order_line_item` will be re-assigned to the `order`. If the merged line item can not be saved, an error will be added to `order`. into. If nil, the `other_order_line_item` will be re-assigned.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/order_merger.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--OrderMerger-handle_merge-for-pr
# Commit to gitgit add core/app/models/spree/order_merger.rbgit commit -m "better docs for Spree::OrderMerger#handle_merge"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--OrderMerger-handle_merge-for-pr
hub pull-request
# Celebrate!