Skip to content

Commit

Permalink
activerecord: Arel tree managers can take a table on initialize since…
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya authored Oct 1, 2024
1 parent c718a9d commit 25b8cf2
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 6 deletions.
12 changes: 12 additions & 0 deletions gems/activerecord/6.0/activerecord-6.0.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,16 @@ module Arel
class Table
def initialize: (untyped name, ?type_caster: untyped? type_caster, ?as: untyped? as) -> untyped
end

class InsertManager < Arel::TreeManager
def initialize: () -> untyped
end

class UpdateManager < Arel::TreeManager
def initialize: () -> untyped
end

class DeleteManager < Arel::TreeManager
def initialize: () -> untyped
end
end
6 changes: 0 additions & 6 deletions gems/activerecord/6.0/activerecord-generated.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -22295,8 +22295,6 @@ module Arel
class DeleteManager < Arel::TreeManager
include TreeManager::StatementMethods

def initialize: () -> untyped

def from: (untyped relation) -> untyped
end
end
Expand Down Expand Up @@ -22359,8 +22357,6 @@ end
module Arel
# :nodoc: all
class InsertManager < Arel::TreeManager
def initialize: () -> untyped

def into: (untyped table) -> untyped

def columns: () -> untyped
Expand Down Expand Up @@ -23572,8 +23568,6 @@ module Arel
class UpdateManager < Arel::TreeManager
include TreeManager::StatementMethods

def initialize: () -> untyped

# #
# UPDATE +table+
def table: (untyped table) -> untyped
Expand Down
12 changes: 12 additions & 0 deletions gems/activerecord/6.1/activerecord-6.1.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,16 @@ module Arel
class Table
def initialize: (untyped name, ?type_caster: untyped type_caster, ?as: untyped? as, ?klass: untyped?) -> void
end

class InsertManager < Arel::TreeManager
def initialize: () -> untyped
end

class UpdateManager < Arel::TreeManager
def initialize: () -> untyped
end

class DeleteManager < Arel::TreeManager
def initialize: () -> untyped
end
end
12 changes: 12 additions & 0 deletions gems/activerecord/7.0/activerecord-7.0.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,16 @@ module Arel
class Table
def initialize: (untyped name, ?type_caster: untyped type_caster, ?as: untyped? as, ?klass: untyped?) -> void
end

class InsertManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end

class UpdateManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end

class DeleteManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end
end
12 changes: 12 additions & 0 deletions gems/activerecord/7.1/activerecord-7.1.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,16 @@ module Arel
class Table
def initialize: (untyped name, ?type_caster: untyped type_caster, ?as: untyped? as, ?klass: untyped?) -> void
end

class InsertManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end

class UpdateManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end

class DeleteManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end
end
12 changes: 12 additions & 0 deletions gems/activerecord/7.2/activerecord-7.2.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,18 @@ module Arel
class Table
def initialize: (untyped name, ?type_caster: untyped type_caster, ?as: untyped? as, ?klass: untyped?) -> void
end

class InsertManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end

class UpdateManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end

class DeleteManager < Arel::TreeManager
def initialize: (?Arel::Table? table) -> untyped
end
end

module ActiveRecord
Expand Down

0 comments on commit 25b8cf2

Please sign in to comment.