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.34 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.33 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.32 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.31 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.30 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.29 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.28 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.27 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.26 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.25 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.23 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.22 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.21 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.20 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.19 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.18 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.17 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.16 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.15 lib/mongo_doc/railties/config.rb
mongo_doc-0.6.14 lib/mongo_doc/railties/config.rb