Skip to content

Instantly share code, notes, and snippets.

@gosuri
Created January 7, 2012 00:03
Show Gist options
  • Save gosuri/1573154 to your computer and use it in GitHub Desktop.
Save gosuri/1573154 to your computer and use it in GitHub Desktop.
Config Loader For Rails
CONFIG = HashWithIndifferentAccess.new(YAML::load(ERB.new(IO.read(File.join(Rails.root, 'config', 'config.yml'))).result)[Rails.env])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment