module ActiveSupport::Dependencies

def load_file(path, const_paths = loadable_constants_for_path(path))

+loadable_constants_for_path+ for more details.
set of names that the file at +path+ may define. See
If the second parameter is left off, then Dependencies will construct a

autoloaded, and will be removed when Dependencies.clear is next called.
addition of these constants. Each that is defined will be marked as
constant names. When loading the file, Dependencies will watch for the
Load the file at the provided path. +const_paths+ is a set of qualified
def load_file(path, const_paths = loadable_constants_for_path(path))
  const_paths = [const_paths].compact unless const_paths.is_a? Array
  parent_paths = const_paths.collect { |const_path| const_path[/.*(?=::)/] || ::Object }
  result = nil
  newly_defined_paths = new_constants_in(*parent_paths) do
    result = Kernel.load path
  end
  autoloaded_constants.concat newly_defined_paths unless load_once_path?(path)
  autoloaded_constants.uniq!
  result
end