Sha256: 389a6c3441d493ca0648a477e63461fb0b3dde53050e849c7ad53d214410f310
Contents?: true
Size: 533 Bytes
Versions: 5
Compression:
Stored size: 533 Bytes
Contents
module DbCharmer module ActiveRecord module Relation module ArelEngine def self.extended(base) class << base alias_method_chain :arel_engine, :db_charmer end end # Use the model itself an engine for Arel, do not fall back to AR::Base # That guarantees the correct connection will be used in Arel::Table # for determining list of columns and stuff. def arel_engine_with_db_charmer(*) self end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems