Permalink
Browse files

Remove optional join_dependency argument as Relation always supplies it

  • Loading branch information...
1 parent 47da00e commit 8e57deed8b4efad6ea1c551f415b74596111f890 @lifo lifo committed Jan 2, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/associations.rb
@@ -1465,8 +1465,7 @@ def add_touch_callbacks(reflection, touch_attribute)
after_destroy(method_name)
end
- def find_with_associations(options = {}, join_dependency = nil)
- join_dependency ||= JoinDependency.new(self, merge_includes(scope(:find, :include), options[:include]), options[:joins])
+ def find_with_associations(options = {}, join_dependency)
rows = select_all_rows(options, join_dependency)
join_dependency.instantiate(rows)
rescue ThrowResult

0 comments on commit 8e57dee

Please sign in to comment.