Skip to content

Commit 5a0e11f

Browse files
committed
revert file check
1 parent 390b46d commit 5a0e11f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/metasploit/framework/require.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ def self.optionally(name, without_warning)
4949
#
5050
# @return [void]
5151
def self.optionally_active_record_railtie
52-
conf = ::Rails.application.config.paths['config/database']
53-
if conf.any? && ::File.exist?(conf.first)
52+
if ::Rails.application.config.paths['config/database'].any?
5453
optionally(
5554
'active_record/railtie',
5655
'activerecord not in the bundle, so database support will be disabled.'

0 commit comments

Comments
 (0)