Skip to content

Commit

Permalink
Conditinalize Mongoid
Browse files Browse the repository at this point in the history
  • Loading branch information
kenn committed Nov 9, 2017
1 parent 1ed274e commit 57d57a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dumper/config/mongodb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def initialize(additional_env: nil)
end

def exist?
defined?(Mongoid) and
default.present?
end

Expand Down

0 comments on commit 57d57a8

Please sign in to comment.