sorbet-rails 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/lib/sorbet-rails/active_record_rbi_formatter.rb +8 -2
  4. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +28 -1
  5. data/lib/sorbet-rails/model_plugins/active_storage_methods.rb +1 -1
  6. data/lib/sorbet-rails/model_utils.rb +1 -1
  7. data/sorbet-rails.gemspec +1 -1
  8. data/spec/generators/sorbet_test_cases.rb +16 -8
  9. data/spec/support/v5.0/Gemfile.lock +2 -2
  10. data/spec/support/v5.0/sorbet_test_cases.rb +16 -8
  11. data/spec/support/v5.1/Gemfile.lock +2 -2
  12. data/spec/support/v5.1/sorbet_test_cases.rb +16 -8
  13. data/spec/support/v5.2/Gemfile.lock +2 -2
  14. data/spec/support/v5.2/sorbet_test_cases.rb +16 -8
  15. data/spec/support/v6.0/Gemfile.lock +2 -2
  16. data/spec/support/v6.0/sorbet_test_cases.rb +16 -8
  17. data/spec/test_data/v5.0/expected_active_record_base.rbi +2 -2
  18. data/spec/test_data/v5.0/expected_active_record_relation.rbi +2 -2
  19. data/spec/test_data/v5.0/expected_headmaster.rbi +24 -0
  20. data/spec/test_data/v5.0/expected_internal_metadata.rbi +24 -0
  21. data/spec/test_data/v5.0/expected_potion.rbi +24 -0
  22. data/spec/test_data/v5.0/expected_robe.rbi +24 -0
  23. data/spec/test_data/v5.0/expected_schema_migration.rbi +24 -0
  24. data/spec/test_data/v5.0/expected_school.rbi +24 -0
  25. data/spec/test_data/v5.0/expected_spell.rbi +24 -0
  26. data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +24 -0
  27. data/spec/test_data/v5.0/expected_spell_book.rbi +24 -0
  28. data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +24 -0
  29. data/spec/test_data/v5.0/expected_squib.rbi +24 -0
  30. data/spec/test_data/v5.0/expected_subject.rbi +24 -0
  31. data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +24 -0
  32. data/spec/test_data/v5.0/expected_wand.rbi +24 -0
  33. data/spec/test_data/v5.0/expected_wizard.rbi +24 -0
  34. data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +24 -0
  35. data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +24 -0
  36. data/spec/test_data/v5.1/expected_active_record_base.rbi +2 -2
  37. data/spec/test_data/v5.1/expected_active_record_relation.rbi +2 -2
  38. data/spec/test_data/v5.1/expected_headmaster.rbi +24 -0
  39. data/spec/test_data/v5.1/expected_internal_metadata.rbi +24 -0
  40. data/spec/test_data/v5.1/expected_potion.rbi +24 -0
  41. data/spec/test_data/v5.1/expected_robe.rbi +24 -0
  42. data/spec/test_data/v5.1/expected_schema_migration.rbi +24 -0
  43. data/spec/test_data/v5.1/expected_school.rbi +24 -0
  44. data/spec/test_data/v5.1/expected_spell.rbi +24 -0
  45. data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +24 -0
  46. data/spec/test_data/v5.1/expected_spell_book.rbi +24 -0
  47. data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +24 -0
  48. data/spec/test_data/v5.1/expected_squib.rbi +24 -0
  49. data/spec/test_data/v5.1/expected_subject.rbi +24 -0
  50. data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +24 -0
  51. data/spec/test_data/v5.1/expected_wand.rbi +24 -0
  52. data/spec/test_data/v5.1/expected_wizard.rbi +24 -0
  53. data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +24 -0
  54. data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +24 -0
  55. data/spec/test_data/v5.2/expected_active_record_base.rbi +2 -2
  56. data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
  57. data/spec/test_data/v5.2/expected_attachment.rbi +24 -0
  58. data/spec/test_data/v5.2/expected_blob.rbi +24 -0
  59. data/spec/test_data/v5.2/expected_headmaster.rbi +24 -0
  60. data/spec/test_data/v5.2/expected_internal_metadata.rbi +24 -0
  61. data/spec/test_data/v5.2/expected_potion.rbi +24 -0
  62. data/spec/test_data/v5.2/expected_robe.rbi +24 -0
  63. data/spec/test_data/v5.2/expected_schema_migration.rbi +24 -0
  64. data/spec/test_data/v5.2/expected_school.rbi +24 -0
  65. data/spec/test_data/v5.2/expected_spell.rbi +24 -0
  66. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +24 -0
  67. data/spec/test_data/v5.2/expected_spell_book.rbi +24 -0
  68. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +24 -0
  69. data/spec/test_data/v5.2/expected_squib.rbi +24 -0
  70. data/spec/test_data/v5.2/expected_subject.rbi +24 -0
  71. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +24 -0
  72. data/spec/test_data/v5.2/expected_wand.rbi +24 -0
  73. data/spec/test_data/v5.2/expected_wizard.rbi +24 -0
  74. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +24 -0
  75. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +24 -0
  76. data/spec/test_data/v6.0/expected_active_record_base.rbi +2 -2
  77. data/spec/test_data/v6.0/expected_active_record_relation.rbi +10 -10
  78. data/spec/test_data/v6.0/expected_attachment.rbi +24 -0
  79. data/spec/test_data/v6.0/expected_blob.rbi +74 -38
  80. data/spec/test_data/v6.0/expected_headmaster.rbi +24 -0
  81. data/spec/test_data/v6.0/expected_internal_metadata.rbi +24 -0
  82. data/spec/test_data/v6.0/expected_potion.rbi +24 -0
  83. data/spec/test_data/v6.0/expected_robe.rbi +24 -0
  84. data/spec/test_data/v6.0/expected_routes.rbi +14 -7
  85. data/spec/test_data/v6.0/expected_schema_migration.rbi +24 -0
  86. data/spec/test_data/v6.0/expected_school.rbi +24 -0
  87. data/spec/test_data/v6.0/expected_spell.rbi +24 -0
  88. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +24 -0
  89. data/spec/test_data/v6.0/expected_spell_book.rbi +119 -53
  90. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +24 -0
  91. data/spec/test_data/v6.0/expected_squib.rbi +346 -100
  92. data/spec/test_data/v6.0/expected_subject.rbi +24 -0
  93. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +24 -0
  94. data/spec/test_data/v6.0/expected_wand.rbi +128 -56
  95. data/spec/test_data/v6.0/expected_wizard.rbi +346 -100
  96. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +24 -0
  97. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +346 -100
  98. metadata +1 -1
@@ -150,6 +150,18 @@ module Subject::HABTM_Wizards::QueryMethodsReturningRelation
150
150
 
151
151
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
152
152
  def extending(*args, &block); end
153
+
154
+ sig do
155
+ params(
156
+ of: T.nilable(Integer),
157
+ start: T.nilable(Integer),
158
+ finish: T.nilable(Integer),
159
+ load: T.nilable(T::Boolean),
160
+ error_on_ignore: T.nilable(T::Boolean),
161
+ block: T.nilable(T.proc.params(e: Subject::HABTM_Wizards::ActiveRecord_Relation).void)
162
+ ).returns(T::Enumerable[Subject::HABTM_Wizards::ActiveRecord_Relation])
163
+ end
164
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
153
165
  end
154
166
 
155
167
  module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
@@ -236,6 +248,18 @@ module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
236
248
 
237
249
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
238
250
  def extending(*args, &block); end
251
+
252
+ sig do
253
+ params(
254
+ of: T.nilable(Integer),
255
+ start: T.nilable(Integer),
256
+ finish: T.nilable(Integer),
257
+ load: T.nilable(T::Boolean),
258
+ error_on_ignore: T.nilable(T::Boolean),
259
+ block: T.nilable(T.proc.params(e: Subject::HABTM_Wizards::ActiveRecord_AssociationRelation).void)
260
+ ).returns(T::Enumerable[Subject::HABTM_Wizards::ActiveRecord_AssociationRelation])
261
+ end
262
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
239
263
  end
240
264
 
241
265
  class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
@@ -372,6 +372,18 @@ module Wand::QueryMethodsReturningRelation
372
372
 
373
373
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
374
374
  def extending(*args, &block); end
375
+
376
+ sig do
377
+ params(
378
+ of: T.nilable(Integer),
379
+ start: T.nilable(Integer),
380
+ finish: T.nilable(Integer),
381
+ load: T.nilable(T::Boolean),
382
+ error_on_ignore: T.nilable(T::Boolean),
383
+ block: T.nilable(T.proc.params(e: Wand::ActiveRecord_Relation).void)
384
+ ).returns(T::Enumerable[Wand::ActiveRecord_Relation])
385
+ end
386
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
375
387
  end
376
388
 
377
389
  module Wand::QueryMethodsReturningAssociationRelation
@@ -458,4 +470,16 @@ module Wand::QueryMethodsReturningAssociationRelation
458
470
 
459
471
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
460
472
  def extending(*args, &block); end
473
+
474
+ sig do
475
+ params(
476
+ of: T.nilable(Integer),
477
+ start: T.nilable(Integer),
478
+ finish: T.nilable(Integer),
479
+ load: T.nilable(T::Boolean),
480
+ error_on_ignore: T.nilable(T::Boolean),
481
+ block: T.nilable(T.proc.params(e: Wand::ActiveRecord_AssociationRelation).void)
482
+ ).returns(T::Enumerable[Wand::ActiveRecord_AssociationRelation])
483
+ end
484
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
461
485
  end
@@ -732,6 +732,18 @@ module Wizard::QueryMethodsReturningRelation
732
732
 
733
733
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
734
734
  def extending(*args, &block); end
735
+
736
+ sig do
737
+ params(
738
+ of: T.nilable(Integer),
739
+ start: T.nilable(Integer),
740
+ finish: T.nilable(Integer),
741
+ load: T.nilable(T::Boolean),
742
+ error_on_ignore: T.nilable(T::Boolean),
743
+ block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_Relation).void)
744
+ ).returns(T::Enumerable[Wizard::ActiveRecord_Relation])
745
+ end
746
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
735
747
  end
736
748
 
737
749
  module Wizard::QueryMethodsReturningAssociationRelation
@@ -818,4 +830,16 @@ module Wizard::QueryMethodsReturningAssociationRelation
818
830
 
819
831
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
820
832
  def extending(*args, &block); end
833
+
834
+ sig do
835
+ params(
836
+ of: T.nilable(Integer),
837
+ start: T.nilable(Integer),
838
+ finish: T.nilable(Integer),
839
+ load: T.nilable(T::Boolean),
840
+ error_on_ignore: T.nilable(T::Boolean),
841
+ block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_AssociationRelation).void)
842
+ ).returns(T::Enumerable[Wizard::ActiveRecord_AssociationRelation])
843
+ end
844
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
821
845
  end
@@ -150,6 +150,18 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
150
150
 
151
151
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
152
152
  def extending(*args, &block); end
153
+
154
+ sig do
155
+ params(
156
+ of: T.nilable(Integer),
157
+ start: T.nilable(Integer),
158
+ finish: T.nilable(Integer),
159
+ load: T.nilable(T::Boolean),
160
+ error_on_ignore: T.nilable(T::Boolean),
161
+ block: T.nilable(T.proc.params(e: Wizard::HABTM_Subjects::ActiveRecord_Relation).void)
162
+ ).returns(T::Enumerable[Wizard::HABTM_Subjects::ActiveRecord_Relation])
163
+ end
164
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
153
165
  end
154
166
 
155
167
  module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
@@ -236,6 +248,18 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
236
248
 
237
249
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
238
250
  def extending(*args, &block); end
251
+
252
+ sig do
253
+ params(
254
+ of: T.nilable(Integer),
255
+ start: T.nilable(Integer),
256
+ finish: T.nilable(Integer),
257
+ load: T.nilable(T::Boolean),
258
+ error_on_ignore: T.nilable(T::Boolean),
259
+ block: T.nilable(T.proc.params(e: Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation).void)
260
+ ).returns(T::Enumerable[Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation])
261
+ end
262
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
239
263
  end
240
264
 
241
265
  class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
@@ -726,6 +726,18 @@ module Wizard::QueryMethodsReturningRelation
726
726
 
727
727
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
728
728
  def extending(*args, &block); end
729
+
730
+ sig do
731
+ params(
732
+ of: T.nilable(Integer),
733
+ start: T.nilable(Integer),
734
+ finish: T.nilable(Integer),
735
+ load: T.nilable(T::Boolean),
736
+ error_on_ignore: T.nilable(T::Boolean),
737
+ block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_Relation).void)
738
+ ).returns(T::Enumerable[Wizard::ActiveRecord_Relation])
739
+ end
740
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
729
741
  end
730
742
 
731
743
  module Wizard::QueryMethodsReturningAssociationRelation
@@ -812,4 +824,16 @@ module Wizard::QueryMethodsReturningAssociationRelation
812
824
 
813
825
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
814
826
  def extending(*args, &block); end
827
+
828
+ sig do
829
+ params(
830
+ of: T.nilable(Integer),
831
+ start: T.nilable(Integer),
832
+ finish: T.nilable(Integer),
833
+ load: T.nilable(T::Boolean),
834
+ error_on_ignore: T.nilable(T::Boolean),
835
+ block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_AssociationRelation).void)
836
+ ).returns(T::Enumerable[Wizard::ActiveRecord_AssociationRelation])
837
+ end
838
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
815
839
  end
@@ -75,7 +75,7 @@ class ActiveRecord::Base
75
75
  def self.first_or_initialize(attributes = nil, &block); end
76
76
 
77
77
  sig do
78
- override.params(
78
+ params(
79
79
  start: T.nilable(Integer),
80
80
  finish: T.nilable(Integer),
81
81
  batch_size: T.nilable(Integer),
@@ -86,7 +86,7 @@ class ActiveRecord::Base
86
86
  def self.find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
87
87
 
88
88
  sig do
89
- override.params(
89
+ params(
90
90
  start: T.nilable(Integer),
91
91
  finish: T.nilable(Integer),
92
92
  batch_size: T.nilable(Integer),
@@ -81,7 +81,7 @@ class ActiveRecord::Relation
81
81
  def first_or_initialize(attributes = nil, &block); end
82
82
 
83
83
  sig do
84
- override.params(
84
+ params(
85
85
  start: T.nilable(Integer),
86
86
  finish: T.nilable(Integer),
87
87
  batch_size: T.nilable(Integer),
@@ -92,7 +92,7 @@ class ActiveRecord::Relation
92
92
  def find_each(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
93
93
 
94
94
  sig do
95
- override.params(
95
+ params(
96
96
  start: T.nilable(Integer),
97
97
  finish: T.nilable(Integer),
98
98
  batch_size: T.nilable(Integer),
@@ -162,6 +162,18 @@ module Headmaster::QueryMethodsReturningRelation
162
162
 
163
163
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
164
164
  def extending(*args, &block); end
165
+
166
+ sig do
167
+ params(
168
+ of: T.nilable(Integer),
169
+ start: T.nilable(Integer),
170
+ finish: T.nilable(Integer),
171
+ load: T.nilable(T::Boolean),
172
+ error_on_ignore: T.nilable(T::Boolean),
173
+ block: T.nilable(T.proc.params(e: Headmaster::ActiveRecord_Relation).void)
174
+ ).returns(T::Enumerable[Headmaster::ActiveRecord_Relation])
175
+ end
176
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
165
177
  end
166
178
 
167
179
  module Headmaster::QueryMethodsReturningAssociationRelation
@@ -251,6 +263,18 @@ module Headmaster::QueryMethodsReturningAssociationRelation
251
263
 
252
264
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_AssociationRelation) }
253
265
  def extending(*args, &block); end
266
+
267
+ sig do
268
+ params(
269
+ of: T.nilable(Integer),
270
+ start: T.nilable(Integer),
271
+ finish: T.nilable(Integer),
272
+ load: T.nilable(T::Boolean),
273
+ error_on_ignore: T.nilable(T::Boolean),
274
+ block: T.nilable(T.proc.params(e: Headmaster::ActiveRecord_AssociationRelation).void)
275
+ ).returns(T::Enumerable[Headmaster::ActiveRecord_AssociationRelation])
276
+ end
277
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
254
278
  end
255
279
 
256
280
  class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation
@@ -156,6 +156,18 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
156
156
 
157
157
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
158
158
  def extending(*args, &block); end
159
+
160
+ sig do
161
+ params(
162
+ of: T.nilable(Integer),
163
+ start: T.nilable(Integer),
164
+ finish: T.nilable(Integer),
165
+ load: T.nilable(T::Boolean),
166
+ error_on_ignore: T.nilable(T::Boolean),
167
+ block: T.nilable(T.proc.params(e: ActiveRecord::InternalMetadata::ActiveRecord_Relation).void)
168
+ ).returns(T::Enumerable[ActiveRecord::InternalMetadata::ActiveRecord_Relation])
169
+ end
170
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
159
171
  end
160
172
 
161
173
  module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
@@ -245,6 +257,18 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
245
257
 
246
258
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
247
259
  def extending(*args, &block); end
260
+
261
+ sig do
262
+ params(
263
+ of: T.nilable(Integer),
264
+ start: T.nilable(Integer),
265
+ finish: T.nilable(Integer),
266
+ load: T.nilable(T::Boolean),
267
+ error_on_ignore: T.nilable(T::Boolean),
268
+ block: T.nilable(T.proc.params(e: ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation).void)
269
+ ).returns(T::Enumerable[ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation])
270
+ end
271
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
248
272
  end
249
273
 
250
274
  class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Relation
@@ -126,6 +126,18 @@ module Potion::QueryMethodsReturningRelation
126
126
 
127
127
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_Relation) }
128
128
  def extending(*args, &block); end
129
+
130
+ sig do
131
+ params(
132
+ of: T.nilable(Integer),
133
+ start: T.nilable(Integer),
134
+ finish: T.nilable(Integer),
135
+ load: T.nilable(T::Boolean),
136
+ error_on_ignore: T.nilable(T::Boolean),
137
+ block: T.nilable(T.proc.params(e: Potion::ActiveRecord_Relation).void)
138
+ ).returns(T::Enumerable[Potion::ActiveRecord_Relation])
139
+ end
140
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
129
141
  end
130
142
 
131
143
  module Potion::QueryMethodsReturningAssociationRelation
@@ -215,6 +227,18 @@ module Potion::QueryMethodsReturningAssociationRelation
215
227
 
216
228
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_AssociationRelation) }
217
229
  def extending(*args, &block); end
230
+
231
+ sig do
232
+ params(
233
+ of: T.nilable(Integer),
234
+ start: T.nilable(Integer),
235
+ finish: T.nilable(Integer),
236
+ load: T.nilable(T::Boolean),
237
+ error_on_ignore: T.nilable(T::Boolean),
238
+ block: T.nilable(T.proc.params(e: Potion::ActiveRecord_AssociationRelation).void)
239
+ ).returns(T::Enumerable[Potion::ActiveRecord_AssociationRelation])
240
+ end
241
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
218
242
  end
219
243
 
220
244
  class Potion::ActiveRecord_Relation < ActiveRecord::Relation
@@ -147,6 +147,18 @@ module Robe::QueryMethodsReturningRelation
147
147
 
148
148
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_Relation) }
149
149
  def extending(*args, &block); end
150
+
151
+ sig do
152
+ params(
153
+ of: T.nilable(Integer),
154
+ start: T.nilable(Integer),
155
+ finish: T.nilable(Integer),
156
+ load: T.nilable(T::Boolean),
157
+ error_on_ignore: T.nilable(T::Boolean),
158
+ block: T.nilable(T.proc.params(e: Robe::ActiveRecord_Relation).void)
159
+ ).returns(T::Enumerable[Robe::ActiveRecord_Relation])
160
+ end
161
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
150
162
  end
151
163
 
152
164
  module Robe::QueryMethodsReturningAssociationRelation
@@ -236,6 +248,18 @@ module Robe::QueryMethodsReturningAssociationRelation
236
248
 
237
249
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_AssociationRelation) }
238
250
  def extending(*args, &block); end
251
+
252
+ sig do
253
+ params(
254
+ of: T.nilable(Integer),
255
+ start: T.nilable(Integer),
256
+ finish: T.nilable(Integer),
257
+ load: T.nilable(T::Boolean),
258
+ error_on_ignore: T.nilable(T::Boolean),
259
+ block: T.nilable(T.proc.params(e: Robe::ActiveRecord_AssociationRelation).void)
260
+ ).returns(T::Enumerable[Robe::ActiveRecord_AssociationRelation])
261
+ end
262
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
239
263
  end
240
264
 
241
265
  class Robe::ActiveRecord_Relation < ActiveRecord::Relation
@@ -129,6 +129,18 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
129
129
 
130
130
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
131
131
  def extending(*args, &block); end
132
+
133
+ sig do
134
+ params(
135
+ of: T.nilable(Integer),
136
+ start: T.nilable(Integer),
137
+ finish: T.nilable(Integer),
138
+ load: T.nilable(T::Boolean),
139
+ error_on_ignore: T.nilable(T::Boolean),
140
+ block: T.nilable(T.proc.params(e: ActiveRecord::SchemaMigration::ActiveRecord_Relation).void)
141
+ ).returns(T::Enumerable[ActiveRecord::SchemaMigration::ActiveRecord_Relation])
142
+ end
143
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
132
144
  end
133
145
 
134
146
  module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
@@ -218,6 +230,18 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
218
230
 
219
231
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
220
232
  def extending(*args, &block); end
233
+
234
+ sig do
235
+ params(
236
+ of: T.nilable(Integer),
237
+ start: T.nilable(Integer),
238
+ finish: T.nilable(Integer),
239
+ load: T.nilable(T::Boolean),
240
+ error_on_ignore: T.nilable(T::Boolean),
241
+ block: T.nilable(T.proc.params(e: ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation).void)
242
+ ).returns(T::Enumerable[ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation])
243
+ end
244
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
221
245
  end
222
246
 
223
247
  class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relation
@@ -147,6 +147,18 @@ module School::QueryMethodsReturningRelation
147
147
 
148
148
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
149
149
  def extending(*args, &block); end
150
+
151
+ sig do
152
+ params(
153
+ of: T.nilable(Integer),
154
+ start: T.nilable(Integer),
155
+ finish: T.nilable(Integer),
156
+ load: T.nilable(T::Boolean),
157
+ error_on_ignore: T.nilable(T::Boolean),
158
+ block: T.nilable(T.proc.params(e: School::ActiveRecord_Relation).void)
159
+ ).returns(T::Enumerable[School::ActiveRecord_Relation])
160
+ end
161
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
150
162
  end
151
163
 
152
164
  module School::QueryMethodsReturningAssociationRelation
@@ -236,6 +248,18 @@ module School::QueryMethodsReturningAssociationRelation
236
248
 
237
249
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_AssociationRelation) }
238
250
  def extending(*args, &block); end
251
+
252
+ sig do
253
+ params(
254
+ of: T.nilable(Integer),
255
+ start: T.nilable(Integer),
256
+ finish: T.nilable(Integer),
257
+ load: T.nilable(T::Boolean),
258
+ error_on_ignore: T.nilable(T::Boolean),
259
+ block: T.nilable(T.proc.params(e: School::ActiveRecord_AssociationRelation).void)
260
+ ).returns(T::Enumerable[School::ActiveRecord_AssociationRelation])
261
+ end
262
+ def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
239
263
  end
240
264
 
241
265
  class School::ActiveRecord_Relation < ActiveRecord::Relation