File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class DBManager
19
19
20
20
# Mainly, it's Ruby 1.9.1 that cause a lot of problems now, along with Ruby 1.8.6.
21
21
# Ruby 1.8.7 actually seems okay, but why tempt fate? Let's say 1.9.3 and beyond.
22
- def self . warn_about_rubies
22
+ def warn_about_rubies
23
23
if ::RUBY_VERSION =~ /^1\. 9\. [012]($|[^\d ])/
24
24
$stderr. puts "**************************************************************************************"
25
25
$stderr. puts "Metasploit requires at least Ruby 1.9.3. For an easy upgrade path, see https://rvm.io/"
@@ -118,7 +118,9 @@ def initialize_database_support
118
118
# If Mdm::Host is defined, the dynamically created classes
119
119
# are already in the object space
120
120
begin
121
- include MetasploitDataModels unless defined? Mdm ::Host
121
+ unless defined? Mdm ::Host
122
+ self . class . send :include , MetasploitDataModels
123
+ end
122
124
rescue NameError => e
123
125
warn_about_rubies
124
126
raise e
You can’t perform that action at this time.
0 commit comments