lib/daengine.rb in daengine-0.0.7.alpha vs lib/daengine.rb in daengine-0.0.8.alpha

- old
+ new

@@ -12,18 +12,18 @@ @mongoid_config = { 'database' => 'ssc_assets', # mongoid database name 'host' => 'foo', # mongoid server 'port' => 27017, # mongodb server port + 'slave_ok' => true } @valid_mongoid_keys = @mongoid_config.keys # yaml file config def self.configure(config_options) config_options.each {|k,v| @config[k.to_sym] = v} config_options.each {|k,v| -p "configuring mongoid option #{k} value #{v}" @mongoid_config[k] = v if @valid_mongoid_keys.include? k } Mongoid.configure do |config| config.from_hash(@mongoid_config) end