acook / config_module

Load important configuration files into their own modules
MIT License
2 stars 2 forks source link

Setup block #19

Closed acook closed 9 years ago

acook commented 9 years ago

It works pretty much exactly like #11 demonstrated:

module ExampleConfig
  extend ConfigModule.setup do
    path 'config/example.yml'
    namespace config_module.env
    method_name :settings
  end
end

The implementation needs some refactoring and the old usage needs to be deprecated before the next version.

acook commented 9 years ago

Closing this due to an issue with GitHub not removing disabled integrations (in this case CircleCI) from PRs.