Skip to content

Instantly share code, notes, and snippets.

@phlegx
Created September 4, 2012 13:28
Show Gist options
  • Save phlegx/3621152 to your computer and use it in GitHub Desktop.
Save phlegx/3621152 to your computer and use it in GitHub Desktop.
...
module ProjectCore
class Application < Rails::Application
end
APP_DB_CONFIG = YAML.load(ERB.new(File.read("/etc/project-core/db.yml")).result)[Rails.env]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment