File tree 2 files changed +8
-1
lines changed
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.
55
55
56
56
> Note: By default, the config environment will match the Rails environment (` Rails.env ` ). This can be changed by setting ` config.environment ` .
57
57
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
+
58
66
### Installing on Padrino
59
67
60
68
Add 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 192
192
end
193
193
194
194
195
-
196
195
context "Nested Settings" do
197
196
let ( :config ) do
198
197
Config . load_files ( "#{ fixture_path } /development.yml" )
You can’t perform that action at this time.
0 commit comments