class Baza::Driver::ActiveRecord::Users

Public Class Methods

new(args) click to toggle source
# File lib/baza/driver/active_record/users.rb, line 2
def initialize(args)
  @args = args

  require "#{File.dirname(__FILE__)}/../#{@args.fetch(:db).driver.driver_type}"
  @proxy_to = ::Baza::Driver.const_get(StringCases.snake_to_camel(@args.fetch(:db).driver.driver_type)).const_get(:Users).new(@args)
end

Public Instance Methods

method_missing(name, *args, &blk) click to toggle source
# File lib/baza/driver/active_record/users.rb, line 9
def method_missing(name, *args, &blk)
  @proxy_to.__send__(name, *args, &blk)
end