Skip to content
Dale Campbell edited this page Jul 5, 2013 · 5 revisions

Note: The 1.x branch is deprecated in favor of the 2.0 branch. If you want the old functionality, either clone the 1.x branch, or use the older gem, like so: gem "app_config", "~> 1.1.1"

See the main wiki page for current usage.


The :storage_method option to AppConfig.setup() has been removed in favor of :yaml, :mongo, etc., so their respective config options can be provided as values to those keys.

Upgrading YAML Storage

# The old ways:
AppConfig.setup(:storage_method => :yaml, :path => '/path/to/app_config.yml')
AppConfig.setup(:uri => 'yaml:///path/to/app_config.yml')

# The new way:
AppConfig.setup(:yaml => '/path/to/app_config.yml')

Upgrading Mongo Storage

# The old way:
AppConfig.setup({
  :storage_method => :mongo,
  :host => 'localhost',
  :database => 'app_config',
  # etc...
})

# The new way:
AppConfig.setup({
  :mongo => {
    :host => 'localhost',
    :database => 'app_config',
  }
})
Clone this wiki locally