direct_descendants() Instance Public methods
descendants() Instance Public methods
store_inherited(klass, descendant) Class Public methods This is the only method that is not thread safe, but is only ever called during the eager loading phase.
direct_descendants(klass) Class Public methods
descendants(klass) Class Public methods
clear() Class Public methods
new(deprecation_horizon = '4.2', gem_name = 'Rails') Class Public methods It accepts two parameters on initialization. The first is a version of library and the second is a library name ActiveSupport::Deprecation.new('2.0', 'MyLibrary')
warn(message = nil, callstack = nil) Instance Public methods Outputs a deprecation warning to the output configured by ActiveSupport::Deprecation.behavior. ActiveSupport::Deprecation.warn('something broke!') # => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)"
silence() Instance Public methods Silence deprecation warnings within the block. ActiveSupport::Deprecation.warn('something broke!') # => "DEPRECATION WARNING: something broke! (called from your_code.rb:1)" ActiveSupport::Deprecation.silence do ActiveSupport::Deprecation.warn('something broke!') end # => nil
deprecation_warning(deprecated_method_name, message = nil, caller_backtrace = nil) Instance Public methods
Page 153 of 2275