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