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

Use Spree::Event. activate_all_subscribers when available #53

Conversation

spaghetticode
Copy link
Member

@spaghetticode spaghetticode commented Sep 25, 2020

The new method Spree::Event. activate_all_subscribers is introduced in Solidus with solidusio/solidus#3758 as a better way to subscribe event subscribers: under the hood, event subscribers use new internal mappings.

Also, we need to keep around the old interface as well until it won't be supported anymore in Solidus.

For more details about the mappings change see solidusio/solidus#3757

The new method `Spree::Event.activate_all_subscribers` is introduced
in Solidus with solidusio/solidus#3758 as a better way to subscribe
event subscribers. Under the hood, event subscribers use new interal
mappings.

Also, we need to keep around the old interface as well until it won't
be supported anymore in Solidus.
@spaghetticode spaghetticode force-pushed the spaghetticode/new-event-subscribers-mappings branch from 78cc32a to 5b52ea7 Compare October 19, 2020 15:48
@spaghetticode spaghetticode changed the title Use Spree::Event.subscribe_subscribers! when available Use Spree::Event. activate_all_subscribers when available Oct 19, 2020
@spaghetticode spaghetticode removed the WIP label Oct 26, 2020
@kennyadsl kennyadsl merged commit 371c942 into solidusio:master Oct 26, 2020
@kennyadsl kennyadsl deleted the spaghetticode/new-event-subscribers-mappings branch October 26, 2020 16:33
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

3 participants