mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Revert "Remove optional join_dependency argument as Relation always supplies it"
This reverts commit 8e57deed8b.
This commit is contained in:
@@ -1465,7 +1465,8 @@ module ActiveRecord
|
||||
after_destroy(method_name)
|
||||
end
|
||||
|
||||
def find_with_associations(options = {}, join_dependency)
|
||||
def find_with_associations(options = {}, join_dependency = nil)
|
||||
join_dependency ||= JoinDependency.new(self, merge_includes(scope(:find, :include), options[:include]), options[:joins])
|
||||
rows = select_all_rows(options, join_dependency)
|
||||
join_dependency.instantiate(rows)
|
||||
rescue ThrowResult
|
||||
|
||||
Reference in New Issue
Block a user