mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
just mutate the ast, fewer lasgns
This commit is contained in:
committed by
Vijay Dev
parent
e9732c75a8
commit
cea73f82ad
@@ -225,14 +225,13 @@ module ActiveRecord
|
||||
test = eqls.inject(eqls.shift) do |memo, expr|
|
||||
memo.or(expr)
|
||||
end
|
||||
arel = arel.where(test)
|
||||
arel.where(test)
|
||||
end
|
||||
|
||||
(wheres - equalities).each do |where|
|
||||
where = Arel.sql(where) if String === where
|
||||
arel = arel.where(Arel::Nodes::Grouping.new(where))
|
||||
arel.where(Arel::Nodes::Grouping.new(where))
|
||||
end
|
||||
arel
|
||||
end
|
||||
|
||||
def build_where(opts, other = [])
|
||||
|
||||
Reference in New Issue
Block a user