提交 2afe5a1d 编写于 作者: K Kasper Timm Hansen 提交者: GitHub

Merge pull request #27521 from prathamesh-sonpatki/mark-one-more-constant-as-private

Mark :GeneratedAssociationMethods also as private_constant
......@@ -239,7 +239,9 @@ def initialize_generated_modules # :nodoc:
def generated_association_methods
@generated_association_methods ||= begin
mod = const_set(:GeneratedAssociationMethods, Module.new)
private_constant :GeneratedAssociationMethods
include mod
mod
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册