Skip to content

Instantly share code, notes, and snippets.

@theotherzach
Created March 4, 2013 02:35
Show Gist options
  • Save theotherzach/5079507 to your computer and use it in GitHub Desktop.
Save theotherzach/5079507 to your computer and use it in GitHub Desktop.
path = "#{Rails.root}/config/mysweetconfig.yml"
configfile = YAML.load_file(path)[Rails.env]
MySweetModule::MySweetClass.setup do |config|
config.host = configfile['host']
config.port = configfile['port']
config.database = configfile['database']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment