diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index 0f59558bb59f3dc159684d8810df9ba0c7c00bd6..a02cefc78e1fe83a0ad544978a43fd97098d654f 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -224,6 +224,8 @@ def require_or_load(file_name) Dependencies.require_or_load(file_name) end + # :doc: + # Interprets a file using mechanism and marks its defined # constants as autoloaded. file_name can be either a string or # respond to to_path. @@ -242,6 +244,8 @@ def require_dependency(file_name, message = "No such file to load -- %s.rb") Dependencies.depend_on(file_name, message) end + # :nodoc: + def load_dependency(file) if Dependencies.load? && Dependencies.constant_watch_stack.watching? Dependencies.new_constants_in(Object) { yield }