lib/daengine.rb in daengine-0.1.0 vs lib/daengine.rb in daengine-0.1.1
- old
+ new
@@ -23,9 +23,10 @@
def self.configure(config_options)
config_options.each {|k,v| @config[k.to_sym] = v}
config_options.each {|k,v|
@mongoid_config[k] = v if @valid_mongoid_keys.include? k
}
+ @mongoid_config.delete_if { |k,v| v.empty? }
Mongoid.configure do |config|
config.from_hash(@mongoid_config)
end
p "configured with keys #{@config.keys}"
end