Skip to content

Commit

Permalink
name.blank? -> anonymous? in a few places
Browse files Browse the repository at this point in the history
Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
  • Loading branch information
fxn authored and Yehuda Katz committed Feb 14, 2010
1 parent f7db067 commit b68f5f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/dependencies.rb
Expand Up @@ -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)
Expand Down

0 comments on commit b68f5f7

Please sign in to comment.