Skip to content

Commit bb054c1

Browse files
committed
Update relation_extensions.rb
Try to fix activerecord-hackery#362 with activerecord-hackery#416 (comment)
1 parent c12a784 commit bb054c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/squeel/adapters/active_record/relation_extensions.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ def build_where(opts, other = [])
266266
end
267267
end
268268

269+
=begin
269270
def collapse_wheres(arel, wheres)
270271
wheres = Array(wheres)
271272
binaries = wheres.grep(Arel::Nodes::Binary)
@@ -279,6 +280,7 @@ def collapse_wheres(arel, wheres)
279280
280281
arel.where(Arel::Nodes::And.new(groups)) if groups.any?
281282
end
283+
=end
282284

283285
def find_equality_predicates(nodes, relation_table_name = table_name)
284286
nodes.map { |node|

0 commit comments

Comments
 (0)