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

- old
+ new

@@ -10,19 +10,22 @@ :assets_path => '/digital-assets' } @mongoid_config = { 'database' => 'ssc_assets', # mongoid database name - 'host' => 'localhost', # mongoid server + 'host' => 'foo', # mongoid server 'port' => 27017, # mongodb server port } @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| @mongoid_config[k.to_sym] = v if @valid_mongoid_keys.include? k.to_sym} + 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 p "configured with keys #{@config.keys}" end