lib/daengine.rb in daengine-0.1.1 vs lib/daengine.rb in daengine-0.1.2
- old
+ new
@@ -23,10 +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_config.delete_if { |k,v| ! v }
Mongoid.configure do |config|
config.from_hash(@mongoid_config)
end
p "configured with keys #{@config.keys}"
end