class Sentry::Rails::LogSubscriber
def detach_from(namespace, notifications = ActiveSupport::Notifications)
def detach_from(namespace, notifications = ActiveSupport::Notifications) listeners = public_instance_methods(false) .flat_map { |key| notifications.notifier.listeners_for("#{key}.#{namespace}") } .select { |listener| listener.instance_variable_get(:@delegate).is_a?(self) } listeners.map do |listener| notifications.notifier.unsubscribe(listener) end end