Sha256: 9a561c96a5db6fa0dcce4cbe85d12ab67040a2b0c8cc37b3f6abec4801d2954b

Contents?: true

Size: 379 Bytes

Versions: 2

Compression:

Stored size: 379 Bytes

Contents

class Baza::Driver::ActiveRecord::Tables
  def initialize(args)
    @args = args

    require "#{File.dirname(__FILE__)}/../#{@args[:db].conn.conn_type}"
    @proxy_to = ::Baza::Driver.const_get(StringCases.snake_to_camel(@args[:db].conn.conn_type)).const_get(:Tables).new(@args)
  end

  def method_missing(name, *args, &blk)
    @proxy_to.__send__(name, *args, &blk)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
baza-0.0.19 lib/baza/drivers/active_record/tables.rb
baza-0.0.18 lib/baza/drivers/active_record/tables.rb