Module: RestfulRouteVersion::DependencyExt

Defined in:
lib/restful_route_version/dependency_ext.rb

Instance Method Summary collapse

Instance Method Details

#remove_unloadable_constants!Object



6
7
8
9
10
11
12
13
# File 'lib/restful_route_version/dependency_ext.rb', line 6

def remove_unloadable_constants!
  autoloaded_constants.each { |const|
    remove_constant const unless dynamically_defined_constants.include?(const)
  }
  autoloaded_constants.clear
  ActiveSupport::Dependencies::Reference.clear!
  explicitly_unloadable_constants.each { |const| remove_constant const }
end