Numeric key in yam file to be used by config file

I am using a YAML file for my app config, loading it :

raw_config = File.read(RAILS_ROOT + “/config/app_config.yml”)
APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys

It’s running well as long as I use alpha keys

development:
seve:
api_token: e09cba8653489749388797926512bb75

then APP_CONFIG[:seve][“api_token”] gives me
e09cba8653489749388797926512bb75

BUT I need to use a ‘numeric’ project_id key , like 123456 rather
than seve, and writing

development:
123456:
api_token: e09cba8653489749388797926512bb7

gives me a syntax error, unexpected tINTEGER (which I can
understand…)

how can I user a numeric key ?

thanks fyh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs