deprecate_methods

deprecate_methods(target_module, *method_names) Instance Public methods Declare that a method has been deprecated. module Fred extend self def foo; end def bar; end def baz; end end ActiveSupport::Deprecation.deprecate_methods(Fred, :foo, bar: :qux, baz: 'use Bar#baz instead') # => [:foo, :bar, :baz] Fred.foo # => "DEPRECATION WARNING: foo is deprecated and will be removed from Rails 4.1." Fred.bar # => "DEPRECATION WARNING: bar is deprecated and will be remove

new

new(object, message, deprecator = ActiveSupport::Deprecation.instance) Class Public methods

new

new(instance, method, var = "@#{method}", deprecator = ActiveSupport::Deprecation.instance) Class Public methods

class

class() Instance Public methods

new

new(old_const, new_const, deprecator = ActiveSupport::Deprecation.instance) Class Public methods

behavior=

behavior=(behavior) Instance Public methods Sets the behavior to the specified value. Can be a single value, array, or an object that responds to call. Available behaviors: raise Raise ActiveSupport::DeprecationException. stderr Log all deprecation warnings to +$stderr+. log Log all deprecation warnings to Rails.logger. notify Use ActiveSupport::Notifications to notify deprecation.rails. silence Do nothing. Setting behaviors only affects deprecations that happ

behavior

behavior() Instance Public methods Returns the current behavior or if one isn't set, defaults to :stderr.

watching?

watching?() Instance Public methods

watch_namespaces

watch_namespaces(namespaces) Instance Public methods Add a set of modules to the watch stack, remembering the initial constants.

new_constants

new_constants() Instance Public methods Returns a list of new constants found since the last call to watch_namespaces.