Method: ActiveSupport::Dependencies::ZeitwerkIntegration::Decorations#clear
- Defined in:
- lib/active_support/dependencies/zeitwerk_integration.rb
#clear ⇒ Object
10 11 12 13 14 15 16 |
# File '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 |