提交 34c3c64e 编写于 作者: A Aaron Patterson

refactor a little so we can remove some methods

上级 6537e504
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册