class ParamsReady::Query::ArrayGrouping

Public Instance Methods

context_for_predicates(restriction) click to toggle source
# File lib/params_ready/query/array_grouping.rb, line 19
def context_for_predicates(restriction)
  restriction.for_children(self)
end
operator() click to toggle source
# File lib/params_ready/query/array_grouping.rb, line 15
def operator
  self[:operator].unwrap
end
predicates() click to toggle source
# File lib/params_ready/query/array_grouping.rb, line 11
def predicates
  self[:array].to_a
end
to_query(arel_table, context: Restriction.blanket_permission) click to toggle source
# File lib/params_ready/query/array_grouping.rb, line 23
def to_query(arel_table, context: Restriction.blanket_permission)
  array = self[:array]

  context = array.intent_for_children(context)
  super arel_table, context: context
end