lib/metasploit/credential/engine.rb in metasploit-credential-2.0.14 vs lib/metasploit/credential/engine.rb in metasploit-credential-3.0.0
- old
+ new
@@ -27,14 +27,14 @@
initializer 'metasploit_credential.prepend_factory_path',
# factory paths from the final Rails.application
after: 'factory_girl.set_factory_paths',
# before metasploit_data_models because it prepends
before: 'metasploit_data_models.prepend_factory_path' do
- if defined? FactoryGirl
+ if defined? FactoryBot
relative_definition_file_path = config.generators.options[:factory_girl][:dir]
definition_file_path = root.join(relative_definition_file_path)
# unshift so that projects that use metasploit-credential can modify metasploit_credential_* factories
- FactoryGirl.definition_file_paths.unshift definition_file_path
+ FactoryBot.definition_file_paths.unshift definition_file_path
end
end
end