revert file check

bug/bundler_fix
Christian Mehlmauer 2016-01-21 20:21:41 +01:00
parent 390b46dd25
commit 5a0e11fb72
No known key found for this signature in database
GPG Key ID: DCF54A05D6E62591
1 changed files with 1 additions and 2 deletions

View File

@ -49,8 +49,7 @@ module Metasploit
# #
# @return [void] # @return [void]
def self.optionally_active_record_railtie def self.optionally_active_record_railtie
conf = ::Rails.application.config.paths['config/database'] if ::Rails.application.config.paths['config/database'].any?
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.'