Created
June 16, 2010 11:12
-
-
Save manuelmeurer/440522 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/aaa_load_app_config.rb | |
# | |
# Prefixed with "aaa_" so that it is loaded first and app configs can be used in later initializers | |
require 'ostruct' | |
::AppConfig = OpenStruct.new(YAML.load_file(Rails.root.join('config', 'app_config.yml')).with_indifferent_access) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/app_config.yml | |
# | |
# Example: | |
twitter: | |
username: | |
password: | |
bitly: | |
username: | |
api_key: | |
mail: | |
username: | |
password: | |
port: 587 | |
address: smtp.gmail.com | |
from: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment