Skip to content

Commit

Permalink
Update relation_extensions.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jfcaiceo committed Apr 29, 2016
1 parent c12a784 commit bb054c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/squeel/adapters/active_record/relation_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ def build_where(opts, other = [])
end
end

=begin
def collapse_wheres(arel, wheres)
wheres = Array(wheres)
binaries = wheres.grep(Arel::Nodes::Binary)
Expand All @@ -279,6 +280,7 @@ def collapse_wheres(arel, wheres)
arel.where(Arel::Nodes::And.new(groups)) if groups.any?
end
=end

def find_equality_predicates(nodes, relation_table_name = table_name)
nodes.map { |node|
Expand Down

0 comments on commit bb054c1

Please sign in to comment.