Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gems/activerecord/8.0/_test/activerecord-generated.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions gems/activerecord/8.0/activerecord-8.0.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions gems/activerecord/8.0/activerecord.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down