Skip to content

Instantly share code, notes, and snippets.

@harish86
Created May 15, 2013 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harish86/5581430 to your computer and use it in GitHub Desktop.
Save harish86/5581430 to your computer and use it in GitHub Desktop.
Initializing APP_CONFIG from /config/config.yml in a rails application
# Location: config/initializers/app_config.rb
APP_CONFIG = YAML.load_file(File.join(Rails.root, 'config', 'config.yml'))[Rails.env]
development:
s3_bucket_name: "development-bucket"
staging:
s3_bucket_name: "staging-bucket"
production:
s3_bucket_name: "production-bucket"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment