method

clear

rails latest stable - Class: ActiveSupport::Dependencies::ZeitwerkIntegration::Decorations

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

clear()
public

No documentation available.

# File activesupport/lib/active_support/dependencies/zeitwerk_integration.rb, line 10
        def clear
          Dependencies.unload_interlock do
            Rails.autoloaders.main.reload
          rescue Zeitwerk::ReloadingDisabledError
            raise "reloading is disabled because config.cache_classes is true"
          end
        end