Sha256: ed90bccb7c678308352caa85524025d0e3092ab8b278341ba0a2cf8219b561f9

Contents?: true

Size: 397 Bytes

Versions: 18

Compression:

Stored size: 397 Bytes

Contents

class Baza::Driver::ActiveRecord::Users
  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

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
baza-0.0.38 lib/baza/driver/active_record/users.rb
baza-0.0.37 lib/baza/driver/active_record/users.rb
baza-0.0.36 lib/baza/driver/active_record/users.rb
baza-0.0.35 lib/baza/driver/active_record/users.rb
baza-0.0.34 lib/baza/driver/active_record/users.rb
baza-0.0.33 lib/baza/driver/active_record/users.rb
baza-0.0.32 lib/baza/driver/active_record/users.rb
baza-0.0.31 lib/baza/driver/active_record/users.rb
baza-0.0.30 lib/baza/driver/active_record/users.rb
baza-0.0.29 lib/baza/driver/active_record/users.rb
baza-0.0.28 lib/baza/driver/active_record/users.rb
baza-0.0.27 lib/baza/driver/active_record/users.rb
baza-0.0.26 lib/baza/driver/active_record/users.rb
baza-0.0.25 lib/baza/driver/active_record/users.rb
baza-0.0.24 lib/baza/driver/active_record/users.rb
baza-0.0.23 lib/baza/driver/active_record/users.rb
baza-0.0.22 lib/baza/driver/active_record/users.rb
baza-0.0.21 lib/baza/driver/active_record/users.rb