module

ActiveSupport::Deprecation

Deprecation specifies the API used by Rails to deprecate methods, instance variables, objects and constants.

Included modules

  • ActiveSupport::Deprecation::Behavior
  • ActiveSupport::Deprecation::InstanceDelegator
  • ActiveSupport::Deprecation::MethodWrapper
  • ActiveSupport::Deprecation::Reporting
  • Singleton

Constants

DEFAULT_BEHAVIORS = {\nraise: ->(message, callstack) {\ne = DeprecationException.new(message)\ne.set_backtrace(callstack.map(&:to_s))\nraise e\n},\n\nstderr: ->(message, callstack) {\n$stderr.puts(message)\n$stderr.puts callstack.join("\\n ") if debug\n},\n\nlog: ->(message, callstack) {\nlogger =\nif defined?(Rails.logger) && Rails.logger\nRails.logger\nelse\nrequire "active_support/logger"\nActiveSupport::Logger.new($stderr)\nend\nlogger.warn message\nlogger.debug callstack.join("\\n ") if debug\n},\n\nnotify: ->(message, callstack) {\nActiveSupport::Notifications.instrument("deprecation.rails",\nmessage: message, callstack: callstack)\n},\n\nsilence: ->(message, callstack) {},\n}

Attributes

[RW]deprecation_horizon

Files

  • activesupport/lib/active_support/deprecation.rb
  • activesupport/lib/active_support/deprecation/behaviors.rb
  • activesupport/lib/active_support/deprecation/constant_accessor.rb
  • activesupport/lib/active_support/deprecation/instance_delegator.rb
  • activesupport/lib/active_support/deprecation/method_wrappers.rb
  • activesupport/lib/active_support/deprecation/proxy_wrappers.rb
  • activesupport/lib/active_support/deprecation/reporting.rb

Nested classes and modules