Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
vovanmozg committed Mar 30, 2024
1 parent 96d7be9 commit 5db7fc4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ You can now edit them to adjust to your needs.

> Note: By default, the config environment will match the Rails environment (`Rails.env`). This can be changed by setting `config.environment`.
You can also define your own settings files and load them in the initializer:

```ruby
Config.setup do |config|
config.load_and_set_settings("/path/to/yaml1", "/path/to/yaml2", ...)
end
```

### Installing on Padrino

Add the gem to your `Gemfile` and run `bundle install` to install it. Then edit `app.rb` and register `Config`
Expand Down
1 change: 0 additions & 1 deletion spec/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@
end



context "Nested Settings" do
let(:config) do
Config.load_files("#{fixture_path}/development.yml")
Expand Down

0 comments on commit 5db7fc4

Please sign in to comment.