1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Arel::Table.engine will be deprecated, so stop using it

This commit is contained in:
Aaron Patterson 2011-01-14 13:11:24 -08:00
parent 1e9685f159
commit 92499b3c7e

View file

@ -829,7 +829,7 @@ module ActiveRecord #:nodoc:
def arel_engine
@arel_engine ||= begin
if self == ActiveRecord::Base
Arel::Table.engine
ActiveRecord::Base
else
connection_handler.connection_pools[name] ? self : superclass.arel_engine
end