diff --git a/gems/activerecord/8.0/_test/activerecord-generated.rb b/gems/activerecord/8.0/_test/activerecord-generated.rb index 162dc9f1..a79b3790 100644 --- a/gems/activerecord/8.0/_test/activerecord-generated.rb +++ b/gems/activerecord/8.0/_test/activerecord-generated.rb @@ -38,6 +38,7 @@ class Article < ActiveRecord::Base User.includes(:address, :friends).to_a User.preload(:address, friends: [:address, { followers: :users }]) User.in_order_of(:id, [1, 5, 3]) +User.in_order_of(:id, [1, 5, 3], filter: false) User.offset(5).limit(10) User.count User.create_with(name: 'name', age: 1) diff --git a/gems/activerecord/8.0/activerecord-8.0.rbs b/gems/activerecord/8.0/activerecord-8.0.rbs index dc84b3ca..bc60223e 100644 --- a/gems/activerecord/8.0/activerecord-8.0.rbs +++ b/gems/activerecord/8.0/activerecord-8.0.rbs @@ -255,7 +255,7 @@ interface _ActiveRecord_Relation[Model, PrimaryKey] # rubocop:disable RBS/Lint/T def exists?: (*untyped) -> bool def order: (*untyped) -> self def group: (*Symbol | String) -> untyped - def in_order_of: (Symbol, Array[untyped]) -> self + def in_order_of: (Symbol, Array[untyped], ?filter: bool) -> self def reorder: (*untyped args) -> self def unscope: (*untyped args) -> self def distinct: () -> self @@ -355,7 +355,7 @@ interface _ActiveRecord_Relation_ClassMethods[Model, Relation, PrimaryKey] # rub | () { (Model) -> boolish } -> bool def order: (*untyped) -> Relation def group: (*Symbol | String) -> untyped - def in_order_of: (Symbol, Array[untyped]) -> Relation + def in_order_of: (Symbol, Array[untyped], ?filter: bool) -> Relation def reorder: (*untyped args) -> Relation def unscope: (*untyped args) -> Relation def distinct: () -> Relation diff --git a/gems/activerecord/8.0/activerecord.rbs b/gems/activerecord/8.0/activerecord.rbs index 9e560da6..10f2b2e8 100644 --- a/gems/activerecord/8.0/activerecord.rbs +++ b/gems/activerecord/8.0/activerecord.rbs @@ -429,7 +429,7 @@ module ActiveRecord def exists?: (*untyped) -> bool def order: (*untyped) -> self def group: (*Symbol | String) -> untyped - def in_order_of: (Symbol, Array[untyped]) -> self + def in_order_of: (Symbol, Array[untyped], ?filter: bool) -> self def distinct: () -> self def or: (::ActiveRecord::Relation) -> self def merge: (Array[untyped] | Hash[untyped, untyped] | ActiveRecord::Relation | Proc) -> self @@ -528,7 +528,7 @@ module ActiveRecord | () { (Model) -> boolish } -> bool def order: (*untyped) -> Relation def group: (*Symbol | String) -> untyped - def in_order_of: (Symbol, Array[untyped]) -> Relation + def in_order_of: (Symbol, Array[untyped], ?filter: bool) -> Relation def distinct: () -> Relation def or: (::ActiveRecord::Relation) -> Relation def merge: (Array[untyped] | Hash[untyped, untyped] | ActiveRecord::Relation | Proc) -> Relation