Skip to content

Instantly share code, notes, and snippets.

@d3chapma
Created May 20, 2011 21:32
Show Gist options
  • Save d3chapma/983865 to your computer and use it in GitHub Desktop.
Save d3chapma/983865 to your computer and use it in GitHub Desktop.
raw_config = File.read(Rails.root + "/config/app_config.yml")
APP_CONFIG = YAML.load(raw_config)[Rails.env].symbolize_keys
# Before Rails 3
# raw_config = File.read(RAILS_ROOT + "/config/app_config.yml")
# APP_CONFIG = YAML.load(raw_config)[RAILS_ENV].symbolize_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment