File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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
6068Add the gem to your ` Gemfile ` and run ` bundle install ` to install it. Then edit ` app.rb ` and register ` Config `
Original file line number Diff line number Diff line change 192192 end
193193
194194
195-
196195 context "Nested Settings" do
197196 let ( :config ) do
198197 Config . load_files ( "#{ fixture_path } /development.yml" )
You can’t perform that action at this time.
0 commit comments