You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,7 +205,9 @@ You may pass a hash to `prepend_source!` as well.
205
205
206
206
## Embedded Ruby (ERB)
207
207
208
-
Embedded Ruby is allowed in the configuration files. Consider the two following config files.
208
+
Embedded Ruby is allowed in the YAML configuration files. ERB will be evaluated at load time by default, and when the `evaluate_erb_in_yaml` configuration is set to `true`.
209
+
210
+
Consider the two following config files.
209
211
210
212
*```#{Rails.root}/config/settings.yml```
211
213
@@ -266,6 +268,7 @@ After installing `Config` in Rails, you will find automatically generated file t
266
268
### General
267
269
268
270
* `const_name` - name of the object holing you settings. Default: `'Settings'`
271
+
* `evaluate_erb_in_yaml` - evaluate ERB in YAML config files. Set to false if the config file contains ERB that should not be evaluated at load time. Default: `true`
0 commit comments