lib/metasploit/credential/engine.rb in metasploit-credential-0.14.8 vs lib/metasploit/credential/engine.rb in metasploit-credential-1.0.0.pre.rails.pre.4.0b
- old
+ new
@@ -10,10 +10,10 @@
g.test_framework :rspec, fixture: false
end
# Remove ActiveSupport::Dependencies loading paths to save time during constant resolution and to ensure that
# metasploit_data_models is properly declaring all autoloads and not falling back on ActiveSupport::Dependencies
- config.paths.each_value do |path|
+ config.paths.values.each do |path|
path.skip_autoload!
path.skip_autoload_once!
path.skip_eager_load!
path.skip_load_path!
end