Sha256: 8dae9c6e256f672b15c7313a7b474cf45e50ec988252e92f783b56df40a6f943

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

class Baza::Driver::ActiveRecord::Columns
  def initialize(args)
    @args = args
    @proxy_to = ::Baza::Driver.const_get(StringCases.snake_to_camel(@args[:db].conn.conn_type)).const_get(:Columns).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/columns.rb
baza-0.0.18 lib/baza/drivers/active_record/columns.rb