class SqlcachedClient::ArelWrapper

Attributes

arel_module[R]

Public Class Methods

arel_module() click to toggle source
# File lib/sqlcached_client/arel.rb, line 63
def arel_module
  instance.arel_module
end
new() click to toggle source
# File lib/sqlcached_client/arel.rb, line 51
def initialize
  # clone ActiveRecord::Base to avoid polluting the connection pool
  active_record = ::ActiveRecord::Base.clone
  def active_record.name
    'sqlcahed_client::dummy'
  end
  ::Arel::Table.engine = active_record.establish_connection(
    adapter: :nulldb)
  @arel_module = ::Arel
end