also check file for existance
parent
f68b2b56fa
commit
390b46dd25
|
@ -49,7 +49,8 @@ module Metasploit
|
||||||
#
|
#
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def self.optionally_active_record_railtie
|
def self.optionally_active_record_railtie
|
||||||
if ::Rails.application.config.paths['config/database'].any?
|
conf = ::Rails.application.config.paths['config/database']
|
||||||
|
if conf.any? && ::File.exist?(conf.first)
|
||||||
optionally(
|
optionally(
|
||||||
'active_record/railtie',
|
'active_record/railtie',
|
||||||
'activerecord not in the bundle, so database support will be disabled.'
|
'activerecord not in the bundle, so database support will be disabled.'
|
||||||
|
|
Loading…
Reference in New Issue