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

DRY Spree::OrderContents #2907

Merged
merged 1 commit into from
Oct 11, 2018
Merged

DRY Spree::OrderContents #2907

merged 1 commit into from
Oct 11, 2018

Conversation

spaghetticode
Copy link
Member

Some duplicated code has been removed from Spree::OrderContents and replaced
by a direct call to Spree::Order#recalculate

Some duplicated code has been removed from `Spree::OrderContents` and replaced
by a direct call to `Spree::Order#recalculate`
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks!

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this change, but should we deprecate the method before removing it, although this is a private method. WDYT?

core/app/models/spree/order_contents.rb Show resolved Hide resolved
@tvdeyen
Copy link
Member

tvdeyen commented Oct 10, 2018

We agreed on not to deprecate a private method

@kennyadsl kennyadsl merged commit 07ece20 into solidusio:master Oct 11, 2018
@kennyadsl kennyadsl deleted the dry branch October 11, 2018 16:44
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.

None yet

4 participants