|
|
@ -16,10 +16,14 @@ module Semantic |
|
|
|
|
|
|
|
private |
|
|
|
|
|
|
|
def global_subscribers = $global_subscribers ||= [] # rubocop:disable Style/GlobalVars |
|
|
|
def global_subscribers |
|
|
|
@global_subscribers ||= [] |
|
|
|
end |
|
|
|
|
|
|
|
def reset |
|
|
|
global_subscribers.each { |sub| ActiveSupport::Notifications.unsubscribe(sub) } |
|
|
|
global_subscribers.each do |sub| |
|
|
|
ActiveSupport::Notifications.unsubscribe(sub) |
|
|
|
end |
|
|
|
global_subscribers.clear |
|
|
|
|
|
|
|
NOTIFICATIONS.each do |event_group, hooks| |
|
|
|