Sha256: c2162958e17ac4cff6e07c28c74919cb0a8f5874c5464aabdeac12b40d869de7

Contents?: true

Size: 289 Bytes

Versions: 23

Compression:

Stored size: 289 Bytes

Contents

module DbCharmer
  class ConnectionProxy < BlankSlate
    def initialize(abstract_class)
      @abstract_connection_class = abstract_class
    end

    def method_missing(meth, *args, &block)
      @abstract_connection_class.retrieve_connection.send(meth, *args, &block)
    end
  end
end

Version data entries

23 entries across 23 versions & 3 rubygems

Version Path
glebpom-db-charmer-1.4.3 lib/db_charmer/connection_proxy.rb
glebpom-db-charmer-1.4.2 lib/db_charmer/connection_proxy.rb
glebpom-db-charmer-1.4.0 lib/db_charmer/connection_proxy.rb