diff options
author | Xavier Noria <fxn@hashref.com> | 2010-02-12 19:50:00 +0100 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-14 11:09:22 -0800 |
commit | b68f5f77e351177ea359d00b93862cf21f67764d (patch) | |
tree | 6bc21a699434002902df102f17ee64308b13ad2f | |
parent | f7db067b128b6e78b3296b5924ff65a8ba732e1c (diff) | |
download | rails-b68f5f77e351177ea359d00b93862cf21f67764d.tar.gz rails-b68f5f77e351177ea359d00b93862cf21f67764d.tar.bz2 rails-b68f5f77e351177ea359d00b93862cf21f67764d.zip |
name.blank? -> anonymous? in a few places
Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index d7c5946a77..f8fc22e16f 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -472,7 +472,7 @@ module ActiveSupport #:nodoc: # 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) |