G
Guilherme Mello
Hi,
I'm creating a Gem and the code uses data from a YAML file:
CONFIG = YAML.load_file("config/file.yml")["development"]
This code is fixed in the class and located at Rails.root/config. The
Gem looks to that path and loads the YAML.
The question is: How allow the user to set what environment will be used
outside of Gem ?
I'm creating a Gem and the code uses data from a YAML file:
CONFIG = YAML.load_file("config/file.yml")["development"]
This code is fixed in the class and located at Rails.root/config. The
Gem looks to that path and loads the YAML.
The question is: How allow the user to set what environment will be used
outside of Gem ?