Easy config
Rails and Rack applications configuration made easy.
Installation
gem install easy_config
or in your Gemfile
gem "easy_config"
See Changelog.
How it works
EasyConfig allows you to access your config files easily. All you have to do is to put your files in config dir and be a valid YAML file (with .yml as extension).
If you desire you can split your configurations by environment. Easy config treats it automatically.
Example
We can access database.yml file as:
EasyConfig.database.adapter
And if you have your our custom config file named my_customs.yml:
EasyConfig.my_customs.custom_var
Supported rubies
- 2.1
- 2.0
- 1.9.3
- ree
License
Copyright (c) 2012-2014 Felipe Oliveira <http://felipecvo.github.io/>