module ParamsReady::Query::Predicate::HavingAssociations

Public Instance Methods

dig(record, associations) click to toggle source
# File lib/params_ready/query/predicate.rb, line 93
def dig(record, associations)
  associations.reduce(record) do |record, assoc|
    next record if record.nil?

    record.send assoc
  end
end