solidusio / solidus_support

Common runtime helpers for Solidus extensions.
BSD 3-Clause "New" or "Revised" License
9 stars 23 forks source link

Use `Spree::Event. activate_all_subscribers` when available #53

Closed spaghetticode closed 3 years ago

spaghetticode commented 3 years ago

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 https://github.com/solidusio/solidus/issues/3757