aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-08-12 18:52:44 +0900
committerGitHub <noreply@github.com>2017-08-12 18:52:44 +0900
commit98360a96cc1e0bb6ab9eb31f421a36439e66eefc (patch)
treec775f0a7118e24850c1403271397a4d8931bdb1f
parent615998c4cb3a36b00f4894ec3bf390eb968d8c8b (diff)
downloadrails-98360a96cc1e0bb6ab9eb31f421a36439e66eefc.tar.gz
rails-98360a96cc1e0bb6ab9eb31f421a36439e66eefc.tar.bz2
rails-98360a96cc1e0bb6ab9eb31f421a36439e66eefc.zip
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.
-rw-r--r--activerecord/lib/active_record/core.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index fbb4c671a5..a84e62ab11 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -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