Permalink
Browse files

use the cached arel table

  • Loading branch information...
1 parent 790b401 commit f6e7e11ad28555860bb8a1bb362fa091f48cc81a @tenderlove tenderlove committed Oct 15, 2013
@@ -18,7 +18,7 @@ def aliased_prefix
end
def table
- Arel::Table.new(table_name, arel_engine)
+ base_klass.arel_table
end
def aliased_table_name
@@ -19,7 +19,7 @@ class JoinPart # :nodoc:
# association.
attr_reader :base_klass, :children
- delegate :table_name, :column_names, :primary_key, :arel_engine, :to => :base_klass
+ delegate :table_name, :column_names, :primary_key, :to => :base_klass
def initialize(base_klass, parent)
@base_klass = base_klass

0 comments on commit f6e7e11

Please sign in to comment.