Permalink
Browse files

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

Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
  • Loading branch information...
1 parent f7db067 commit b68f5f77e351177ea359d00b93862cf21f67764d @fxn fxn committed with Yehuda Katz Feb 12, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/dependencies.rb
@@ -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)

0 comments on commit b68f5f7

Please sign in to comment.