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
58 59 60 |
# File 'lib/connection_manager/using.rb', line 58 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
54 55 56 |
# File 'lib/connection_manager/using.rb', line 54 def using(connection_class) becomes(self.class.using(connection_class).klass) end |