mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix outdated comment for Core::ClassMethods#===
[ci skip] (#30146)
This comment was added at97849de
, but `AssociationProxy` and `test_triple_equality` was removed at1644663
. 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:
parent
615998c4cb
commit
98360a96cc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue