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:
parent
7b5d0e8b78
commit
6f5e3a04d6
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue