mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove most references to where_values
in QueryMethods
We're still using it in `where_unscoping`, which will require moving additional logic.
This commit is contained in:
parent
b6a9c620aa
commit
7227e4fba1
1 changed files with 2 additions and 2 deletions
|
@ -587,7 +587,7 @@ module ActiveRecord
|
|||
references!(PredicateBuilder.references(opts))
|
||||
end
|
||||
|
||||
self.where_values += build_where(opts, rest)
|
||||
self.where_clause += where_clause_factory.build(opts, rest)
|
||||
self
|
||||
end
|
||||
|
||||
|
@ -876,7 +876,7 @@ module ActiveRecord
|
|||
|
||||
build_joins(arel, joins_values.flatten) unless joins_values.empty?
|
||||
|
||||
collapse_wheres(arel, (where_values - [''])) #TODO: Add uniq with real value comparison / ignore uniqs that have binds
|
||||
collapse_wheres(arel, (where_clause.predicates - [''])) #TODO: Add uniq with real value comparison / ignore uniqs that have binds
|
||||
|
||||
arel.having(*having_values.uniq.reject(&:blank?)) unless having_values.empty?
|
||||
|
||||
|
|
Loading…
Reference in a new issue