Module: MongoDoc::Railties::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/mongo_doc/railties/config.rb

Instance Method Summary collapse

Instance Method Details

#config(app) ⇒ Object



6
7
8
9
10
# File 'lib/mongo_doc/railties/config.rb', line 6

def config(app)
  MongoDoc::Connection.config_path = app.root + 'config/mongodb.yml'
  MongoDoc::Connection.default_name = "#{app.root.basename}_#{Rails.env}"
  MongoDoc::Connection.env = Rails.env
end