From be54075956a14c05ec7a7249bed5d5c49034cc8d Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 4 Sep 2006 03:38:13 +0000 Subject: set ActiveSupport::Deprecation.debug = true to see backtraces for deprecation callers. off by default. on for Rails tests. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4966 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/abstract_unit.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/abstract_unit.rb') diff --git a/activerecord/test/abstract_unit.rb b/activerecord/test/abstract_unit.rb index f30e190fc9..5108988a88 100755 --- a/activerecord/test/abstract_unit.rb +++ b/activerecord/test/abstract_unit.rb @@ -8,6 +8,10 @@ require 'active_support/binding_of_caller' require 'active_support/breakpoint' require 'connection' +# Show backtraces for deprecated behavior for quicker cleanup. +ActiveSupport::Deprecation.debug = true + + QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type') unless Object.const_defined?(:QUOTED_TYPE) class Test::Unit::TestCase #:nodoc: -- cgit v1.2.3