Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Refactor shipping_manifest on Spree::Shipment and Spree::Carton #20

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DanielePalombo
Copy link
Member

This PR is going to rename the manifest methods on Spree::Shipment and Spree::Carton, because they return Spree::ShippingManifest#items .

I added a new shipping_manifest private method to memoize the ShippingManifest and reuse it in shipping_manifest_for_order.

Both the methods manifest and manifest_for_order are deprecated.

@DanielePalombo DanielePalombo self-assigned this Oct 26, 2018
@DanielePalombo DanielePalombo changed the title Refactor shipping_manifest on Spree::Shipment and Spree::Carton [WIP] Refactor shipping_manifest on Spree::Shipment and Spree::Carton Oct 26, 2018
`manifest` method returns Spree::ShippingManifest#items, this commit is
going to rename it to `shipping_manifest_items`.

I also refactored it to use the memoize shipping_manifest method.
`manifest` method returns Spree::ShippingManifest#items, this commit is
going to rename it to `shipping_manifest_items`.

I also refactored it to use the memoize shipping_manifest method.
This commit is going to rename the method `manifest_for_order` to
`shipping_manifest_for_order`
I also refactored it to use the memoized `shipping_manifest` method.
@DanielePalombo DanielePalombo force-pushed the nebulab/add-shipping-manifest-to-shipment branch from 43cb51f to e43dd87 Compare October 26, 2018 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant