We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390b46d commit 5a0e11fCopy full SHA for 5a0e11f
lib/metasploit/framework/require.rb
@@ -49,8 +49,7 @@ def self.optionally(name, without_warning)
49
#
50
# @return [void]
51
def self.optionally_active_record_railtie
52
- conf = ::Rails.application.config.paths['config/database']
53
- if conf.any? && ::File.exist?(conf.first)
+ if ::Rails.application.config.paths['config/database'].any?
54
optionally(
55
'active_record/railtie',
56
'activerecord not in the bundle, so database support will be disabled.'
0 commit comments