Skip to content

Instantly share code, notes, and snippets.

@citrus
Created June 27, 2011 21:28
Show Gist options
  • Save citrus/1049885 to your computer and use it in GitHub Desktop.
Save citrus/1049885 to your computer and use it in GitHub Desktop.
# config/initializers/config.rb
CONFIG = YAML.load(File.read(Rails.root.join("config/config.yml")))[Rails.env].symbolize_keys
# config/config.yml
default: &default
title: Dev Title
development:
<<: *default
test:
<<: *default
production:
<<: *default
title: Live Title
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment