Sha256: a1d480446771e24be9ebfc0bfcb0f500bf17e892f913d50627dec68bddbfb32c
Contents?: true
Size: 511 Bytes
Versions: 9
Compression:
Stored size: 511 Bytes
Contents
# Simple proxy that sends all method calls to a real database connection module DbCharmer class ConnectionProxy < BlankSlate def initialize(abstract_class, db_name) @abstract_connection_class = abstract_class @db_name = db_name end def db_charmer_connection_name @db_name end def db_charmer_connection_proxy self end def method_missing(meth, *args, &block) @abstract_connection_class.retrieve_connection.send(meth, *args, &block) end end end
Version data entries
9 entries across 9 versions & 1 rubygems