From 0204f3ae1b5ff4ab6e0429b16ed7e4d2b84cc03d Mon Sep 17 00:00:00 2001 From: David Trasbo Date: Tue, 29 Jun 2010 14:10:59 +0200 Subject: [PATCH] Deprecate ActiveRecord::Base#class_name [#379 state:committed] --- activerecord/lib/active_record/base.rb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 8c10f86..42e3e5f 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -728,6 +728,8 @@ module ActiveRecord #:nodoc: class_name end + ActiveSupport::Deprecation.deprecate_methods(self, :class_name) + # Indicates whether the table associated with this class exists def table_exists? connection.table_exists?(table_name) -- 1.7.1