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