diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-08 11:18:26 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-08 11:18:26 -0800 |
commit | f4223cc7abeeae5f4849eab27951faa55f3c6996 (patch) | |
tree | 488d8a52d670362d4ada9d7cb74776cddc494628 | |
parent | 17d72dd19fc7f979ae17097c3ee1e0b5c1d75fb7 (diff) | |
download | rails-f4223cc7abeeae5f4849eab27951faa55f3c6996.tar.gz rails-f4223cc7abeeae5f4849eab27951faa55f3c6996.tar.bz2 rails-f4223cc7abeeae5f4849eab27951faa55f3c6996.zip |
arel ignores the columns parameter
-rw-r--r-- | activerecord/lib/active_record/associations/class_methods/join_dependency/join_association.rb | 3 |
1 files changed, 1 insertions, 2 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 4dd11a7366..2c20e304d0 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 @@ -67,8 +67,7 @@ module ActiveRecord def table @table ||= Arel::Table.new( - table_name, :as => aliased_table_name, - :engine => arel_engine, :columns => active_record.columns + table_name, :as => aliased_table_name, :engine => arel_engine ) end |