diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-10 13:28:50 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-10 13:28:50 -0800 |
commit | e07772556a2167e44158f367beb3a45e6a55671f (patch) | |
tree | 3fcabdd314d39c5d233e12ef0fb3525d8d5ae09e /activerecord/lib/active_record/associations | |
parent | f528389a5580227f4d173bf4915a98b71befb32e (diff) | |
download | rails-e07772556a2167e44158f367beb3a45e6a55671f.tar.gz rails-e07772556a2167e44158f367beb3a45e6a55671f.tar.bz2 rails-e07772556a2167e44158f367beb3a45e6a55671f.zip |
use table alias nodes rather than Table nodes
Diffstat (limited to 'activerecord/lib/active_record/associations')
-rw-r--r-- | activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb b/activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb index ff6a9993b0..98536d23bc 100644 --- a/activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb +++ b/activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb @@ -181,9 +181,8 @@ module ActiveRecord def join_has_many_through_to(relation) join_table = Arel::Table.new( - through_reflection.klass.table_name, :engine => arel_engine, - :as => @aliased_join_table_name - ) + through_reflection.klass.table_name + ).alias @aliased_join_table_name jt_conditions = [] jt_foreign_key = first_key = second_key = nil |