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

Relation should supply :from to find_with_associations

This commit is contained in:
Pratik Naik 2009-12-27 17:16:20 +05:30
parent 7b5d0e8b78
commit 6f5e3a04d6

View file

@ -93,7 +93,8 @@ module ActiveRecord
:order => @relation.send(:order_clauses).join(', '),
:conditions => where_clause,
:limit => @relation.taken,
:offset => @relation.skipped
:offset => @relation.skipped,
:from => @relation.send(:table_sql, Arel::Sql::TableReference.new(@relation))
},
ActiveRecord::Associations::ClassMethods::JoinDependency.new(@klass, @eager_load_associations, nil))
end