mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Warn that ActiveRecord::Base.reset_subclasses is gone in Rails 3 final.
This commit is contained in:
parent
f3bb185b03
commit
fb7715b249
1 changed files with 12 additions and 0 deletions
|
@ -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+.
|
# 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
|
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:
|
# :singleton-method:
|
||||||
# Contains the database configuration - as is typically stored in config/database.yml -
|
# Contains the database configuration - as is typically stored in config/database.yml -
|
||||||
|
|
Loading…
Reference in a new issue