Fix outdated comment for `Core::ClassMethods#===` [ci skip] (#30146)

This comment was added at 97849de, but `AssociationProxy` and
`test_triple_equality` was removed at 1644663. Currently the `===` is
used for `test_decorated_polymorphic_where` that added at #11945.
So I updated "association proxies" to "decorated models".

And also, currently `Core::ClassMethods` appears in the doc.

http://api.rubyonrails.org/classes/ActiveRecord/Core/ClassMethods.html

But it looks like that the methods in the module is not public API.
So I also added `# :nodoc:` to the module.
This commit is contained in:
Ryuta Kamizono 2017-08-12 18:52:44 +09:00 committed by GitHub
parent 615998c4cb
commit 98360a96cc
1 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ module ActiveRecord
self.default_connection_handler = ConnectionAdapters::ConnectionHandler.new
end
module ClassMethods
module ClassMethods # :nodoc:
def allocate
define_attribute_methods
super
@ -251,7 +251,7 @@ module ActiveRecord
end
end
# Overwrite the default class equality method to provide support for association proxies.
# Overwrite the default class equality method to provide support for decorated models.
def ===(object)
object.is_a?(self)
end