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