Module: ConnectionManager::Using
- Defined in:
- lib/connection_manager/using.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#using(connection_class) ⇒ Object
Instance method for casting to a duplication class.
Class Method Details
.included(host_class) ⇒ Object
65 66 67 |
# File 'lib/connection_manager/using.rb', line 65 def self.included(host_class) host_class.extend(ClassMethods) end |
Instance Method Details
#using(connection_class) ⇒ Object
Instance method for casting to a duplication class
61 62 63 |
# File 'lib/connection_manager/using.rb', line 61 def using(connection_class) becomes(self.class.using(connection_class).klass) end |