class RailsBand::DeprecationSubscriber

DeprecationSubscriber is responsible for logging deprecation warnings.

def consumer

def consumer
  # HACK: ActiveSupport::Subscriber has the instance variable @namespace, but it's not documented.
  #       This hack might possibly break in the future.
  namespace = self.class.instance_variable_get(:@namespace)
  consumers[:"deprecation.#{namespace}"] || consumers[:deprecation] || consumers[:default]
end

def deprecation(event)

def deprecation(event)
  consumer&.call(DeprecationEvent.new(event))
end