This gem provides ruby applications with a global
Settings object loaded from YAML files.
# Gemfile gem 'settings', github: 'roomink/settings'
Settings is a nested
Hashie::Mash populated with values from these files in your app's root:
The files are loaded in that exact order so environment-specific settings overwrite global settings, and local settings override them both.
Missing files are silently skipped.
Settings are automatically filled with data from YAML files on the first call and cached for subsequent calls. If you need to reload this data without restarting the app you can do this:
This call just flushes the cache - the files will be loaded next time you access some value.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request