module
ActiveSupport::Deprecation
v3.2.8 -
Show latest stable
No documentation available for this module.
Constants
DEFAULT_BEHAVIORS = {\n:stderr => Proc.new { |message, callstack|\n$stderr.puts(message)\n$stderr.puts callstack.join("\\n ") if debug\n},\n:log => Proc.new { |message, callstack|\nlogger =\nif defined?(Rails) && Rails.logger\nRails.logger\nelse\nrequire 'logger'\nLogger.new($stderr)\nend\nlogger.warn message\nlogger.debug callstack.join("\\n ") if debug\n},\n:notify => Proc.new { |message, callstack|\nActiveSupport::Notifications.instrument("deprecation.rails",\n:message => message, :callstack => callstack)\n}\n}
Attributes
| [RW] | debug |
| [RW] | deprecation_horizon |
| [RW] | silenced |
Files
- activesupport/lib/active_support/deprecation.rb
- activesupport/lib/active_support/deprecation/behaviors.rb
- activesupport/lib/active_support/deprecation/method_wrappers.rb
- activesupport/lib/active_support/deprecation/proxy_wrappers.rb
- activesupport/lib/active_support/deprecation/reporting.rb