class ActiveSupport::Subscriber

def remove_event_subscriber(event) # :doc:

:doc:
def remove_event_subscriber(event) # :doc:
  return if invalid_event?(event)
  pattern = prepare_pattern(event)
  return unless pattern_subscribed?(pattern)
  notifier.unsubscribe(subscriber.patterns[pattern])
  subscriber.patterns.delete(pattern)
end