Skip to content

Commit

Permalink
activerecord: Add type for AR::QueryMethods::WhereChain#associated
Browse files Browse the repository at this point in the history
`ActiveRecord::QueryMethods::WhereChain#associated` has been added since
v7.0.

refs: rails/rails#40696
  • Loading branch information
tk0miya committed Oct 23, 2024
1 parent 218cf13 commit d7a0169
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions gems/activerecord/7.0/activerecord-7.0.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module ActiveRecord

module QueryMethods
class WhereChain[Relation]
def associated: (*Symbol associations) -> Relation
def missing: (*Symbol associations) -> Relation
end
end
Expand Down
1 change: 1 addition & 0 deletions gems/activerecord/7.1/activerecord-7.1.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ module ActiveRecord

module QueryMethods
class WhereChain[Relation]
def associated: (*Symbol associations) -> Relation
def missing: (*Symbol associations) -> Relation
end
end
Expand Down
1 change: 1 addition & 0 deletions gems/activerecord/7.2/activerecord-7.2.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ module ActiveRecord

module QueryMethods
class WhereChain[Relation]
def associated: (*Symbol associations) -> Relation
def missing: (*Symbol associations) -> Relation
end
end
Expand Down

0 comments on commit d7a0169

Please sign in to comment.