Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tjhanley/59709 to your computer and use it in GitHub Desktop.
Save tjhanley/59709 to your computer and use it in GitHub Desktop.
From a9753966872890154599fb9a0eb22a3fbe697515 Mon Sep 17 00:00:00 2001
From: CORP\thanley <[email protected]>
Date: Wed, 14 Jan 2009 13:38:49 -0800
Subject: [PATCH] Documented MasterDatabase inheritance for Models for Passenger.
---
README.markdown | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/README.markdown b/README.markdown
index e97e2ff..4a5b77a 100644
--- a/README.markdown
+++ b/README.markdown
@@ -78,6 +78,9 @@ the `setup!` call if your connection hasn't been initialized, like:
prepend_before_filter do |controller|
unless ActiveRecord::Base.connection.is_a? ActiveReload::ConnectionProxy
ActiveReload::ConnectionProxy.setup!
+ #Any Model you want to inherit MasterDatabase only eg: Session
+ class Session < ActiveReload::MasterDatabase
+ end
end
end
--
1.6.0.2+GitX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment