lib/rails_powergrid/ext/predicator.rb
# optimize the query tree to avoid some parenthesis
optimize the query tree to avoid some parenthesis
optimize the query tree to avoid some parenthesis
def optimize_query q
      out = {}
      q.map do |k,v|
        optimize_subquery(v, k, out_parent, out)
      end
    end
def optimize_query q out = { } q . map do | k , v | optimize_subquery ( v , k , out_parent , out ) end end
optimize the query tree to avoid some parenthesis
optimize the query tree to avoid some parenthesis
q
<not_specific>