Sha256: f302a14a5f7e8ab7cfd04088930455fb5eac2bc8c74e8298c1d20247f5757ee8

Contents?: true

Size: 274 Bytes

Versions: 19

Compression:

Stored size: 274 Bytes

Contents

mongoid_conf = YAML::load_file(Rails.root.join('config/mongoid.yml'))[Rails.env]

Mongoid.configure do |config|
 config.master = Mongo::Connection.new(mongoid_conf['host'], 
                                       mongoid_conf['port']).db(mongoid_conf['database'])
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
whowish_word-0.3.1 rails/config/mongoid.rb
whowish_word-0.3.0 rails/config/mongoid.rb
whowish_word-0.2.7 rails/config/mongoid.rb
whowish_word-0.2.6 rails/config/mongoid.rb
whowish_word-0.2.5 rails/config/mongoid.rb
whowish_word-0.2.3 rails/config/mongoid.rb
whowish_word-0.2.2 rails/config/mongoid.rb
whowish_word-0.2.1 rails/config/mongoid.rb
whowish_word-0.2.0 rails/config/mongoid.rb
whowish_word-0.1.9 rails/config/mongoid.rb
whowish_word-0.1.8 rails/config/mongoid.rb
whowish_word-0.1.7 rails/config/mongoid.rb
whowish_word-0.1.6 rails/config/mongoid.rb
whowish_word-0.1.5 rails/config/mongoid.rb
whowish_word-0.1.4 rails/config/mongoid.rb
whowish_word-0.1.3 rails/config/mongoid.rb
whowish_word-0.1.2 rails/config/mongoid.rb
whowish_word-0.1.1 rails/config/mongoid.rb
whowish_word-0.1.0 rails/config/mongoid.rb