Class: Baza::Driver::ActiveRecord::Indexes

Inherits:
Object
  • Object
show all
Defined in:
lib/baza/driver/active_record/indexes.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Indexes

Returns a new instance of Indexes.



2
3
4
5
# File 'lib/baza/driver/active_record/indexes.rb', line 2

def initialize(args)
  @args = args
  @proxy_to = ::Baza::Driver.const_get(StringCases.snake_to_camel(@args[:db].driver.driver_type)).const_get(:Indexes).new(@args)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &blk) ⇒ Object



7
8
9
# File 'lib/baza/driver/active_record/indexes.rb', line 7

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