Skip to content

Instantly share code, notes, and snippets.

@dpmcnevin
Created September 6, 2010 23:49
Show Gist options
  • Save dpmcnevin/567654 to your computer and use it in GitHub Desktop.
Save dpmcnevin/567654 to your computer and use it in GitHub Desktop.
class User < ActiveRecord::Base
establish_connection(
YAML.load_file("#{Rails.root}/config/sessions_database.yml")[Rails.env]
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment