Skip to content

Instantly share code, notes, and snippets.

@cjbottaro
Created September 2, 2009 16:08
Show Gist options
  • Save cjbottaro/179793 to your computer and use it in GitHub Desktop.
Save cjbottaro/179793 to your computer and use it in GitHub Desktop.
if File.exists?("my_git_ignored_file.yml")
::AppConfig = ApplicationConfiguration.new("my_git_ignored_file.yml")
else
::AppConfig = ApplicationConfiguration.new("my_normal_config_file.yml")
end
AppConfig.use_environment!(RAILS_ENV)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment