Where do you put the global settings for your Rails application? There are several “app config” plugins out there, but they seem too complicated to me. I just want the following:

  • Store configuration data in a YAML file checked into Git.
  • Store more sensitive configuration data in environment vars or Heroku config.
  • Simple access, no magic: AppConfig['key.subkey']

This is so simple it isn’t even a plugin, just a file to stick in the lib dir and require.