module DeprecationToolkit

def add_notify_behavior

def add_notify_behavior
  notify = ActiveSupport::Deprecation::DEFAULT_BEHAVIORS[:notify]
  each_deprecator do |deprecator|
    behaviors = deprecator.behavior
    unless behaviors.find { |behavior| behavior == notify }
      deprecator.behavior = (behaviors << notify)
    end
  end
end