config
config copied to clipboard
Easiest way to add multi-environment yaml settings to Rails, Sinatra, Padrino and other Ruby projects.
Fixes https://github.com/rubyconfig/config/issues/352
In Rails projects, `config/initializers/config.rb` can be used to configure this gem, but the [Railtie](https://github.com/rubyconfig/config/blob/96132bab0f867795bc24d43532eb0ce2f852884e/lib/config/integrations/rails/railtie.rb) performs the actual first load of the settings files. The Railtie doesn't offer a way to...
The goal here is to remove deep_merge and rely entirely on ActiveSupport's `Hash#deep_merge` implementation. This does mean that if you want to keep the existing behavior, or rely on DeepMerge's...
Fixes https://github.com/rubyconfig/config/issues/124 Adds ability to set extra_sources at initializer level. ```rb Config.setup do |config| config.extra_sources = ['extra_settings'] end ```
Continuation for #353 Fixes #352
Thank you for implementing config.extra_sources in PR #366 ! I personally had a monkey patch in place to achieve similar functionality, and this new feature allowed me to remove it...