From d7a0169e834815792f9917b424dd7ffdb1edbb46 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 24 Oct 2024 00:50:02 +0900 Subject: [PATCH] activerecord: Add type for AR::QueryMethods::WhereChain#associated `ActiveRecord::QueryMethods::WhereChain#associated` has been added since v7.0. refs: https://github.com/rails/rails/pull/40696 --- gems/activerecord/7.0/activerecord-7.0.rbs | 1 + gems/activerecord/7.1/activerecord-7.1.rbs | 1 + gems/activerecord/7.2/activerecord-7.2.rbs | 1 + 3 files changed, 3 insertions(+) diff --git a/gems/activerecord/7.0/activerecord-7.0.rbs b/gems/activerecord/7.0/activerecord-7.0.rbs index 5db9de3d..2dffef2a 100644 --- a/gems/activerecord/7.0/activerecord-7.0.rbs +++ b/gems/activerecord/7.0/activerecord-7.0.rbs @@ -46,6 +46,7 @@ module ActiveRecord module QueryMethods class WhereChain[Relation] + def associated: (*Symbol associations) -> Relation def missing: (*Symbol associations) -> Relation end end diff --git a/gems/activerecord/7.1/activerecord-7.1.rbs b/gems/activerecord/7.1/activerecord-7.1.rbs index 5b67422d..8384f17e 100644 --- a/gems/activerecord/7.1/activerecord-7.1.rbs +++ b/gems/activerecord/7.1/activerecord-7.1.rbs @@ -56,6 +56,7 @@ module ActiveRecord module QueryMethods class WhereChain[Relation] + def associated: (*Symbol associations) -> Relation def missing: (*Symbol associations) -> Relation end end diff --git a/gems/activerecord/7.2/activerecord-7.2.rbs b/gems/activerecord/7.2/activerecord-7.2.rbs index 4437d27e..93ed2417 100644 --- a/gems/activerecord/7.2/activerecord-7.2.rbs +++ b/gems/activerecord/7.2/activerecord-7.2.rbs @@ -48,6 +48,7 @@ module ActiveRecord module QueryMethods class WhereChain[Relation] + def associated: (*Symbol associations) -> Relation def missing: (*Symbol associations) -> Relation end end