Class: Stagehand::Database::Probe
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Stagehand::Database::Probe
- Defined in:
- lib/stagehand/database.rb
Overview
CLASSES
Direct Known Subclasses
Class Method Summary collapse
-
.init_connection(connection_name) ⇒ Object
We fake the class name so we can create a connection pool with the desired connection name instead of the name of the class.
- .name ⇒ Object
Class Method Details
.init_connection(connection_name) ⇒ Object
We fake the class name so we can create a connection pool with the desired connection name instead of the name of the class
124 125 126 127 128 129 |
# File 'lib/stagehand/database.rb', line 124 def self.init_connection(connection_name) @probe_name = connection_name establish_connection(connection_name) ensure @probe_name = nil end |
.name ⇒ Object
131 132 133 |
# File 'lib/stagehand/database.rb', line 131 def self.name @probe_name || super end |