From 57d57a801425b220b1c93932fa4e4389f89b592b Mon Sep 17 00:00:00 2001 From: Kenn Ejima Date: Thu, 9 Nov 2017 18:03:01 +0900 Subject: [PATCH] Conditinalize Mongoid --- lib/dumper/config/mongodb.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/dumper/config/mongodb.rb b/lib/dumper/config/mongodb.rb index 942ce3b..6de209c 100644 --- a/lib/dumper/config/mongodb.rb +++ b/lib/dumper/config/mongodb.rb @@ -13,6 +13,7 @@ def initialize(additional_env: nil) end def exist? + defined?(Mongoid) and default.present? end