Skip to content

send_shipped_email has been moved to ShipmentHandler#20

Open
ehoch wants to merge 2 commits into
DynamoMTL:2-4-stablefrom
ehoch:2-4-stable
Open

send_shipped_email has been moved to ShipmentHandler#20
ehoch wants to merge 2 commits into
DynamoMTL:2-4-stablefrom
ehoch:2-4-stable

Conversation

@ehoch
Copy link
Copy Markdown
Contributor

@ehoch ehoch commented Jun 19, 2015

Hey guys so it looks like in 2.4 the Spree::ShipmentMailer.shipped_email code has been moved to the handler:

https://github.com/spree/spree/blob/2-4-stable/core/app/models/spree/shipment_handler.rb#L30

We need to make sure we decorate here as well or the Spree::Config.send_shipped_email doesn't work.

@joshnuss
Copy link
Copy Markdown
Contributor

Thanks for the fix @ehoch !

Can you remove the unneeded method Spree::Shipment#send_shipped_email too?

@ehoch
Copy link
Copy Markdown
Contributor Author

ehoch commented Jun 19, 2015

So I'm not sure if that one isn't ALSO needed because they still have that code in core:

https://github.com/spree/spree/blob/2-4-stable/core/app/models/spree/shipment.rb#L415

I just know that the Handler one gets called in our store so we were double emailing...

@joshnuss
Copy link
Copy Markdown
Contributor

Looks like its dead code (cause its a private function and not called anywhere in the Shipment class), so we can safely remove it from spree_shipstation

@ehoch
Copy link
Copy Markdown
Contributor Author

ehoch commented Jun 19, 2015

You are correct. Go Spree.

@joshnuss
Copy link
Copy Markdown
Contributor

:)

@jormon
Copy link
Copy Markdown
Contributor

jormon commented Jan 15, 2016

fixed in #22

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.

3 participants