1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove Relation#build_where

All of its uses have been moved to better places
This commit is contained in:
Sean Griffin 2015-01-26 15:55:22 -07:00
parent 6a7ac40dab
commit 76661dc64f

View file

@ -937,12 +937,6 @@ module ActiveRecord
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) ||