# File lib/active_record/base.rb, line 859 def arel_engine @arel_engine ||= begin if self == ActiveRecord::Base Arel::Table.engine else connection_handler.connection_pools[name] ? self : superclass.arel_engine end end end