Permalink
Browse files

refactor a little so we can remove some methods

  • Loading branch information...
1 parent 6537e50 commit 34c3c64eccdb9cbc1b8e254f3d46b1a3c95d2881 @tenderlove tenderlove committed Oct 10, 2013
@@ -80,7 +80,7 @@ def merge_outer_joins!(other)
end
def join_constraints
- join_root.flat_map(&:join_constraints)
+ join_root.children.flat_map { |c| c.flat_map(&:join_constraints) }
end
def columns
@@ -29,9 +29,6 @@ def initialize(base_klass, parent)
@children = []
end
- def join_constraints; []; end
- def join_relation(rel); rel; end
-
def name
reflection.name
end

0 comments on commit 34c3c64

Please sign in to comment.