lib/active_support/deprecation.rb in activesupport-1.4.1 vs lib/active_support/deprecation.rb in activesupport-1.4.2

- old
+ new

@@ -11,11 +11,12 @@ 'test' => Proc.new { |message, callstack| $stderr.puts(message) $stderr.puts callstack.join("\n ") if debug }, 'development' => Proc.new { |message, callstack| - RAILS_DEFAULT_LOGGER.warn message - RAILS_DEFAULT_LOGGER.debug callstack.join("\n ") if debug + logger = defined?(::RAILS_DEFAULT_LOGGER) ? ::RAILS_DEFAULT_LOGGER : Logger.new($stderr) + logger.warn message + logger.debug callstack.join("\n ") if debug } } class << self def warn(message = nil, callstack = caller)