提交 76661dc6 编写于 作者: S Sean Griffin

Remove `Relation#build_where`

All of its uses have been moved to better places
上级 6a7ac40d
......@@ -937,12 +937,6 @@ def collapse_wheres(arel, wheres)
arel.where(Arel::Nodes::And.new(predicates)) if predicates.present?
end
def build_where(opts, other = [])
where_clause = where_clause_factory.build(opts, other)
self.bind_values += where_clause.binds
where_clause.predicates
end
def association_for_table(table_name)
table_name = table_name.to_s
@klass._reflect_on_association(table_name) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册