Is there a custom tag in YAML for ruby to include a YAML file inside a YAML file?
#E.g.: --- !include filename: another.yml
A similar que
I'm using this:
load_config.rb (initializer)
cf_1 = YAML::load(File.read("/etc/my_app/config.yml")) cf_2 = YAML::load(File.read(File.join(Rails.root, "config", "config.yml"))) CONFIG = cf_1.merge(cf_2)
Later, you can access config values by doing:
CONFIG['value']