use .any?

bug/bundler_fix
Christian Mehlmauer 2016-01-19 23:16:10 +01:00
parent aaa1174ca5
commit b45e22b64d
No known key found for this signature in database
GPG Key ID: DCF54A05D6E62591
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ module Metasploit
#
# @return [void]
def self.optionally_active_record_railtie
if ::File.exist?('config/database.yml')
if ::Rails.application.config.paths['config/database'].any?
optionally(
'active_record/railtie',
'activerecord not in the bundle, so database support will be disabled.'