In my settings.yml file I have several config vars, some of which reference ENV[] variables.
for example I have ENV[\'FOOVAR\'] equals WIDGET
I thought I cou
Use <%= ENV['FOOVAR'] %>
instead of <% ENV['FOOVAR'] %>
.
Be aware that this approach will only work if whatever is parsing the Yaml file is set up to process it via Erb (for example, you can see how Mongoid does exactly this). It's not universally supported in Yaml files though, so it depends on what you're using this Yaml file for.