Skip to content

Instantly share code, notes, and snippets.

@hron
Created June 24, 2011 13:37
Show Gist options
  • Save hron/1044777 to your computer and use it in GitHub Desktop.
Save hron/1044777 to your computer and use it in GitHub Desktop.
application config in yaml
config = YAML.load_file("#{Rails.root}/config/config.yml")
APP_CONFIG = HashWithIndifferentAccess.new(config[Rails.env])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment