Sha256: eddb700680cd68aa6ce13a8b478b8a34a06f47ba2e71a22433a2e7f27154ed12

Contents?: true

Size: 321 Bytes

Versions: 33

Compression:

Stored size: 321 Bytes

Contents

module MongoDoc
  module Railties
    module Config
      extend self

      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
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
mongo_doc-0.6.13 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.12 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.11 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.10 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.9 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.8 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.7 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.6 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.5 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.4 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.3 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.2 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.1 lib/mongo_doc/railties/config.rb