class Lita::Handlers::DeprecationCheck

Warns about any handlers using deprecated features. @since 4.0.0

Public Instance Methods

check_handlers_for_default_config(_payload) click to toggle source

Warns about handlers using the old default_config method.

# File lib/lita/handlers/deprecation_check.rb, line 11
def check_handlers_for_default_config(_payload)
  robot.registry.handlers.each do |handler|
    next unless handler.respond_to?(:default_config)
    Lita.logger.warn(
      I18n.t("lita.config.handler_default_config_deprecated", name: handler.namespace)
    )
  end
end