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:
parent
6a7ac40dab
commit
76661dc64f
1 changed files with 0 additions and 6 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Reference in a new issue