Ruby on Rails: Can you put Ruby code in a YAML config file?

Viewed 25940

I would like to do something like this in my amazon_s3.yml config file:

access_key_id: ENV['S3_KEY']
secret_access_key: ENV['S3_SECRET']

...but I know this isn't working. Not sure if it is even possible, but can you put Ruby code in a YAML file?

5 Answers
Related