Module: ActiveRecordExtended

Defined in:
lib/active_record_extended/jsonb_methods.rb,
lib/active_record_extended/jsonb_attributes.rb,
lib/active_record_extended/ltree_query_methods.rb,
lib/active_record_extended/array_and_jsonb_query_methods.rb

Overview

Local replacements for the active_record_extended query helpers we use:

where.overlap(col: vals) -- PostgreSQL array && (any element overlaps)
where.contains(col: hash_or_arr) -- PostgreSQL @> (jsonb / array containment)
where.any_of(cond_a, cond_b...) -- OR together hashes / relations

We dropped the gem during the Rails 8.1 upgrade because its release line
(3.4.0, last tagged 2025-10-07) still pins activerecord < 8.1. The fix on
the gem's main branch was never released, and the gem carries open
Rails 7.1+/7.2+ CTE bugs we don't want to inherit. We don't use the gem's
heavier features (window functions, LATERAL, CTEs, unions) at the call-site
density that would justify a fork.

Mounted onto ActiveRecord::QueryMethods::WhereChain so call sites read
exactly like the gem version: Account.where.overlap(...).

Defined Under Namespace

Modules: ArrayAndJsonbQueryMethods, JsonbAttributes, JsonbMethods, Ltree, LtreeQueryMethods, LtreeSelectMethods