diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-27 18:33:34 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-27 18:58:18 -0700 |
commit | fb7715b2491380becbaa111a4c5a211bac662e97 (patch) | |
tree | 6985e0df9f60b9ef90ca5400269411b03b71f445 | |
parent | f3bb185b03e746b52a4035a6df002597d8552e74 (diff) | |
download | rails-fb7715b2491380becbaa111a4c5a211bac662e97.tar.gz rails-fb7715b2491380becbaa111a4c5a211bac662e97.tar.bz2 rails-fb7715b2491380becbaa111a4c5a211bac662e97.zip |
Warn that ActiveRecord::Base.reset_subclasses is gone in Rails 3 final.
-rw-r--r-- | activerecord/lib/active_record/base.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index e7b52287a5..a4a5faad77 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -278,6 +278,18 @@ module ActiveRecord #:nodoc: # on to any new database connections made and which can be retrieved on both a class and instance level by calling +logger+. cattr_accessor :logger, :instance_writer => false + class << self + def reset_subclasses #:nodoc: + ActiveSupport::Deprecation.warn 'ActiveRecord::Base.reset_subclasses no longer does anything in Rails 3. It will be removed in the final release; please update your apps and plugins.', caller + end + + def subclasses + descendants + end + + deprecate :subclasses => :descendants + end + ## # :singleton-method: # Contains the database configuration - as is typically stored in config/database.yml - |