public Method

Dependencies.autoloaded?(desc)

Determine if the given constant has been automatically loaded.

Source Code

# File active_support/dependencies.rb, line 279
def autoloaded?(desc)
  # No name => anonymous module.
  return false if desc.is_a?(Module) && desc.name.blank?
  name = to_constant_name desc
  return false unless qualified_const_defined? name
  return autoloaded_constants.include?(name)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.