Skip to content

Instantly share code, notes, and snippets.

@exegeteio
Created September 4, 2014 03:08
Show Gist options
  • Save exegeteio/95126bdd256be3f24e51 to your computer and use it in GitHub Desktop.
Save exegeteio/95126bdd256be3f24e51 to your computer and use it in GitHub Desktop.
Application config from YAML.
begin
ENV.update YAML.load_file('config/mio.yml')[Rails.env]
rescue => e
logger.fatal "Failed to load MIO YAML file: #{e.message}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment