Sha256: 2e093a4256784462ab89dd8c5d10770c212622d399a9e1bfd6e4bd26fe7095b0
Contents?: true
Size: 719 Bytes
Versions: 16
Compression:
Stored size: 719 Bytes
Contents
module Fish0 ## # Fish0::Configuration # # Usage: # # config/initializers/fish0.rb # Fish0::Configuration.configure do |config| # config.mongo_hosts = ['localhost:27017'] # config.mongo_params = { database: 'your_data_development', read: { mode: :secondary } } # end ## class Configuration include ActiveSupport::Configurable config_accessor :mongo_hosts do ['localhost:27017'] end ## # Fish0::Configuration.mongo_params # # Usage: # Enter your database and another params as second arguement to MongoClient::New ## config_accessor :mongo_params do { database: 'fish0_development', read: { mode: :secondary } } end end end
Version data entries
16 entries across 16 versions & 1 rubygems