提交 b68f5f77 编写于 作者: X Xavier Noria 提交者: Yehuda Katz

name.blank? -> anonymous? in a few places

Signed-off-by: NYehuda Katz <yehudakatz@YK.local>
上级 f7db067b
......@@ -472,7 +472,7 @@ def remove_unloadable_constants!
# Determine if the given constant has been automatically loaded.
def autoloaded?(desc)
# No name => anonymous module.
return false if desc.is_a?(Module) && desc.name.blank?
return false if desc.is_a?(Module) && desc.anonymous?
name = to_constant_name desc
return false unless qualified_const_defined? name
return autoloaded_constants.include?(name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册