Created
May 20, 2011 21:32
-
-
Save d3chapma/983865 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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