-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add methods for subscribing event subscribers
The new methods `Spree::Event.unsubscribe_subscribers!` and `Spree::Event.subscribe_subscribers!` encapsulate the logic for subscribing and unsubscribing all event subscribers at once. The logic was previously scattered in engine.rb, exposing too much of the subscription internals.
- Loading branch information
1 parent
9048a8f
commit 1304862
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters