module DeprecationToolkit
Constants
- VERSION
Public Class Methods
add_notify_behavior()
click to toggle source
# File lib/deprecation_toolkit.rb, line 19 def self.add_notify_behavior notify = ActiveSupport::Deprecation::DEFAULT_BEHAVIORS[:notify] behaviors = ActiveSupport::Deprecation.behavior unless behaviors.find { |behavior| behavior == notify } ActiveSupport::Deprecation.behavior = behaviors << notify end end
attach_subscriber()
click to toggle source
# File lib/deprecation_toolkit.rb, line 28 def self.attach_subscriber return if DeprecationSubscriber.already_attached? Configuration.attach_to.each do |gem_name| DeprecationSubscriber.attach_to(gem_name) end end