Skip to content

Commit c3e8bc8

Browse files
committed
Fix a crash when we can't connect to PG, again
1 parent fa27def commit c3e8bc8

File tree

1 file changed

+0
-5
lines changed
  • lib/metasploit/framework/command

1 file changed

+0
-5
lines changed

lib/metasploit/framework/command/base.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ def self.require_environment!
6060
# the configuration from the parsed options.
6161
parsed_options.configure(Rails.application)
6262

63-
# support disabling the database
64-
unless parsed_options.options.database.disable
65-
Metasploit::Framework::Require.optionally_active_record_railtie
66-
end
67-
6863
Rails.application.require_environment!
6964

7065
parsed_options

0 commit comments

Comments
 (0)