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

Version Path
fish0-0.1.2 lib/fish0/configuration.rb
fish0-0.1.1 lib/fish0/configuration.rb
fish0-0.1.0 lib/fish0/configuration.rb
fish0-0.0.18 lib/fish0/configuration.rb
fish0-0.0.17 lib/fish0/configuration.rb
fish0-0.0.16 lib/fish0/configuration.rb
fish0-0.0.15 lib/fish0/configuration.rb
fish0-0.0.14 lib/fish0/configuration.rb
fish0-0.0.13 lib/fish0/configuration.rb
fish0-0.0.12 lib/fish0/configuration.rb
fish0-0.0.11 lib/fish0/configuration.rb
fish0-0.0.10 lib/fish0/configuration.rb
fish0-0.0.9 lib/fish0/configuration.rb
fish0-0.0.8 lib/fish0/configuration.rb
fish0-0.0.7 lib/fish0/configuration.rb
fish0-0.0.6 lib/fish0/configuration.rb