Sha256: 1aaa1a44a54723c9ecfb81406c4bb8de610b2b885b0b3c1de6443b4b1aea33f8
Contents?: true
Size: 455 Bytes
Versions: 12
Compression:
Stored size: 455 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 method_missing(meth, *args, &block) @abstract_connection_class.retrieve_connection.send(meth, *args, &block) end end end
Version data entries
12 entries across 12 versions & 1 rubygems