Skip to content

Commit 5db7fc4

Browse files
committed
Add documentation
1 parent 96d7be9 commit 5db7fc4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ You can now edit them to adjust to your needs.
5555

5656
> Note: By default, the config environment will match the Rails environment (`Rails.env`). This can be changed by setting `config.environment`.
5757
58+
You can also define your own settings files and load them in the initializer:
59+
60+
```ruby
61+
Config.setup do |config|
62+
config.load_and_set_settings("/path/to/yaml1", "/path/to/yaml2", ...)
63+
end
64+
```
65+
5866
### Installing on Padrino
5967

6068
Add the gem to your `Gemfile` and run `bundle install` to install it. Then edit `app.rb` and register `Config`

spec/config_spec.rb

-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@
192192
end
193193

194194

195-
196195
context "Nested Settings" do
197196
let(:config) do
198197
Config.load_files("#{fixture_path}/development.yml")

0 commit comments

Comments
 (0)