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.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +8 -2
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +28 -1
- data/lib/sorbet-rails/model_plugins/active_storage_methods.rb +1 -1
- data/lib/sorbet-rails/model_utils.rb +1 -1
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/sorbet_test_cases.rb +16 -8
- data/spec/support/v5.0/Gemfile.lock +2 -2
- data/spec/support/v5.0/sorbet_test_cases.rb +16 -8
- data/spec/support/v5.1/Gemfile.lock +2 -2
- data/spec/support/v5.1/sorbet_test_cases.rb +16 -8
- data/spec/support/v5.2/Gemfile.lock +2 -2
- data/spec/support/v5.2/sorbet_test_cases.rb +16 -8
- data/spec/support/v6.0/Gemfile.lock +2 -2
- data/spec/support/v6.0/sorbet_test_cases.rb +16 -8
- data/spec/test_data/v5.0/expected_active_record_base.rbi +2 -2
- data/spec/test_data/v5.0/expected_active_record_relation.rbi +2 -2
- data/spec/test_data/v5.0/expected_headmaster.rbi +24 -0
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +24 -0
- data/spec/test_data/v5.0/expected_potion.rbi +24 -0
- data/spec/test_data/v5.0/expected_robe.rbi +24 -0
- data/spec/test_data/v5.0/expected_schema_migration.rbi +24 -0
- data/spec/test_data/v5.0/expected_school.rbi +24 -0
- data/spec/test_data/v5.0/expected_spell.rbi +24 -0
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +24 -0
- data/spec/test_data/v5.0/expected_spell_book.rbi +24 -0
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +24 -0
- data/spec/test_data/v5.0/expected_squib.rbi +24 -0
- data/spec/test_data/v5.0/expected_subject.rbi +24 -0
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +24 -0
- data/spec/test_data/v5.0/expected_wand.rbi +24 -0
- data/spec/test_data/v5.0/expected_wizard.rbi +24 -0
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +24 -0
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +24 -0
- data/spec/test_data/v5.1/expected_active_record_base.rbi +2 -2
- data/spec/test_data/v5.1/expected_active_record_relation.rbi +2 -2
- data/spec/test_data/v5.1/expected_headmaster.rbi +24 -0
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +24 -0
- data/spec/test_data/v5.1/expected_potion.rbi +24 -0
- data/spec/test_data/v5.1/expected_robe.rbi +24 -0
- data/spec/test_data/v5.1/expected_schema_migration.rbi +24 -0
- data/spec/test_data/v5.1/expected_school.rbi +24 -0
- data/spec/test_data/v5.1/expected_spell.rbi +24 -0
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +24 -0
- data/spec/test_data/v5.1/expected_spell_book.rbi +24 -0
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +24 -0
- data/spec/test_data/v5.1/expected_squib.rbi +24 -0
- data/spec/test_data/v5.1/expected_subject.rbi +24 -0
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +24 -0
- data/spec/test_data/v5.1/expected_wand.rbi +24 -0
- data/spec/test_data/v5.1/expected_wizard.rbi +24 -0
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +24 -0
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +24 -0
- data/spec/test_data/v5.2/expected_active_record_base.rbi +2 -2
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
- data/spec/test_data/v5.2/expected_attachment.rbi +24 -0
- data/spec/test_data/v5.2/expected_blob.rbi +24 -0
- data/spec/test_data/v5.2/expected_headmaster.rbi +24 -0
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +24 -0
- data/spec/test_data/v5.2/expected_potion.rbi +24 -0
- data/spec/test_data/v5.2/expected_robe.rbi +24 -0
- data/spec/test_data/v5.2/expected_schema_migration.rbi +24 -0
- data/spec/test_data/v5.2/expected_school.rbi +24 -0
- data/spec/test_data/v5.2/expected_spell.rbi +24 -0
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +24 -0
- data/spec/test_data/v5.2/expected_spell_book.rbi +24 -0
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +24 -0
- data/spec/test_data/v5.2/expected_squib.rbi +24 -0
- data/spec/test_data/v5.2/expected_subject.rbi +24 -0
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +24 -0
- data/spec/test_data/v5.2/expected_wand.rbi +24 -0
- data/spec/test_data/v5.2/expected_wizard.rbi +24 -0
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +24 -0
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +24 -0
- data/spec/test_data/v6.0/expected_active_record_base.rbi +2 -2
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +10 -10
- data/spec/test_data/v6.0/expected_attachment.rbi +24 -0
- data/spec/test_data/v6.0/expected_blob.rbi +74 -38
- data/spec/test_data/v6.0/expected_headmaster.rbi +24 -0
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +24 -0
- data/spec/test_data/v6.0/expected_potion.rbi +24 -0
- data/spec/test_data/v6.0/expected_robe.rbi +24 -0
- data/spec/test_data/v6.0/expected_routes.rbi +14 -7
- data/spec/test_data/v6.0/expected_schema_migration.rbi +24 -0
- data/spec/test_data/v6.0/expected_school.rbi +24 -0
- data/spec/test_data/v6.0/expected_spell.rbi +24 -0
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +24 -0
- data/spec/test_data/v6.0/expected_spell_book.rbi +119 -53
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +24 -0
- data/spec/test_data/v6.0/expected_squib.rbi +346 -100
- data/spec/test_data/v6.0/expected_subject.rbi +24 -0
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +24 -0
- data/spec/test_data/v6.0/expected_wand.rbi +128 -56
- data/spec/test_data/v6.0/expected_wizard.rbi +346 -100
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +24 -0
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +346 -100
- metadata +1 -1
@@ -150,6 +150,18 @@ module Spell::QueryMethodsReturningRelation
|
|
150
150
|
|
151
151
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::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: Spell::ActiveRecord_Relation).void)
|
162
|
+
).returns(T::Enumerable[Spell::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 Spell::QueryMethodsReturningAssociationRelation
|
@@ -239,6 +251,18 @@ module Spell::QueryMethodsReturningAssociationRelation
|
|
239
251
|
|
240
252
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_AssociationRelation) }
|
241
253
|
def extending(*args, &block); end
|
254
|
+
|
255
|
+
sig do
|
256
|
+
params(
|
257
|
+
of: T.nilable(Integer),
|
258
|
+
start: T.nilable(Integer),
|
259
|
+
finish: T.nilable(Integer),
|
260
|
+
load: T.nilable(T::Boolean),
|
261
|
+
error_on_ignore: T.nilable(T::Boolean),
|
262
|
+
block: T.nilable(T.proc.params(e: Spell::ActiveRecord_AssociationRelation).void)
|
263
|
+
).returns(T::Enumerable[Spell::ActiveRecord_AssociationRelation])
|
264
|
+
end
|
265
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
242
266
|
end
|
243
267
|
|
244
268
|
class Spell::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -153,6 +153,18 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
|
153
153
|
|
154
154
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
|
155
155
|
def extending(*args, &block); end
|
156
|
+
|
157
|
+
sig do
|
158
|
+
params(
|
159
|
+
of: T.nilable(Integer),
|
160
|
+
start: T.nilable(Integer),
|
161
|
+
finish: T.nilable(Integer),
|
162
|
+
load: T.nilable(T::Boolean),
|
163
|
+
error_on_ignore: T.nilable(T::Boolean),
|
164
|
+
block: T.nilable(T.proc.params(e: Spell::HABTM_SpellBooks::ActiveRecord_Relation).void)
|
165
|
+
).returns(T::Enumerable[Spell::HABTM_SpellBooks::ActiveRecord_Relation])
|
166
|
+
end
|
167
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
156
168
|
end
|
157
169
|
|
158
170
|
module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
@@ -242,6 +254,18 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
|
242
254
|
|
243
255
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
244
256
|
def extending(*args, &block); end
|
257
|
+
|
258
|
+
sig do
|
259
|
+
params(
|
260
|
+
of: T.nilable(Integer),
|
261
|
+
start: T.nilable(Integer),
|
262
|
+
finish: T.nilable(Integer),
|
263
|
+
load: T.nilable(T::Boolean),
|
264
|
+
error_on_ignore: T.nilable(T::Boolean),
|
265
|
+
block: T.nilable(T.proc.params(e: Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation).void)
|
266
|
+
).returns(T::Enumerable[Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation])
|
267
|
+
end
|
268
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
245
269
|
end
|
246
270
|
|
247
271
|
class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -293,6 +293,18 @@ module SpellBook::QueryMethodsReturningRelation
|
|
293
293
|
|
294
294
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
|
295
295
|
def extending(*args, &block); end
|
296
|
+
|
297
|
+
sig do
|
298
|
+
params(
|
299
|
+
of: T.nilable(Integer),
|
300
|
+
start: T.nilable(Integer),
|
301
|
+
finish: T.nilable(Integer),
|
302
|
+
load: T.nilable(T::Boolean),
|
303
|
+
error_on_ignore: T.nilable(T::Boolean),
|
304
|
+
block: T.nilable(T.proc.params(e: SpellBook::ActiveRecord_Relation).void)
|
305
|
+
).returns(T::Enumerable[SpellBook::ActiveRecord_Relation])
|
306
|
+
end
|
307
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
296
308
|
end
|
297
309
|
|
298
310
|
module SpellBook::QueryMethodsReturningAssociationRelation
|
@@ -382,4 +394,16 @@ module SpellBook::QueryMethodsReturningAssociationRelation
|
|
382
394
|
|
383
395
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
384
396
|
def extending(*args, &block); end
|
397
|
+
|
398
|
+
sig do
|
399
|
+
params(
|
400
|
+
of: T.nilable(Integer),
|
401
|
+
start: T.nilable(Integer),
|
402
|
+
finish: T.nilable(Integer),
|
403
|
+
load: T.nilable(T::Boolean),
|
404
|
+
error_on_ignore: T.nilable(T::Boolean),
|
405
|
+
block: T.nilable(T.proc.params(e: SpellBook::ActiveRecord_AssociationRelation).void)
|
406
|
+
).returns(T::Enumerable[SpellBook::ActiveRecord_AssociationRelation])
|
407
|
+
end
|
408
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
385
409
|
end
|
@@ -153,6 +153,18 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
|
153
153
|
|
154
154
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
155
155
|
def extending(*args, &block); end
|
156
|
+
|
157
|
+
sig do
|
158
|
+
params(
|
159
|
+
of: T.nilable(Integer),
|
160
|
+
start: T.nilable(Integer),
|
161
|
+
finish: T.nilable(Integer),
|
162
|
+
load: T.nilable(T::Boolean),
|
163
|
+
error_on_ignore: T.nilable(T::Boolean),
|
164
|
+
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_Relation).void)
|
165
|
+
).returns(T::Enumerable[SpellBook::HABTM_Spells::ActiveRecord_Relation])
|
166
|
+
end
|
167
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
156
168
|
end
|
157
169
|
|
158
170
|
module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
@@ -242,6 +254,18 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
|
242
254
|
|
243
255
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
244
256
|
def extending(*args, &block); end
|
257
|
+
|
258
|
+
sig do
|
259
|
+
params(
|
260
|
+
of: T.nilable(Integer),
|
261
|
+
start: T.nilable(Integer),
|
262
|
+
finish: T.nilable(Integer),
|
263
|
+
load: T.nilable(T::Boolean),
|
264
|
+
error_on_ignore: T.nilable(T::Boolean),
|
265
|
+
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation).void)
|
266
|
+
).returns(T::Enumerable[SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation])
|
267
|
+
end
|
268
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
245
269
|
end
|
246
270
|
|
247
271
|
class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -659,6 +659,18 @@ module Squib::QueryMethodsReturningRelation
|
|
659
659
|
|
660
660
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
661
661
|
def extending(*args, &block); end
|
662
|
+
|
663
|
+
sig do
|
664
|
+
params(
|
665
|
+
of: T.nilable(Integer),
|
666
|
+
start: T.nilable(Integer),
|
667
|
+
finish: T.nilable(Integer),
|
668
|
+
load: T.nilable(T::Boolean),
|
669
|
+
error_on_ignore: T.nilable(T::Boolean),
|
670
|
+
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_Relation).void)
|
671
|
+
).returns(T::Enumerable[Squib::ActiveRecord_Relation])
|
672
|
+
end
|
673
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
662
674
|
end
|
663
675
|
|
664
676
|
module Squib::QueryMethodsReturningAssociationRelation
|
@@ -748,4 +760,16 @@ module Squib::QueryMethodsReturningAssociationRelation
|
|
748
760
|
|
749
761
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_AssociationRelation) }
|
750
762
|
def extending(*args, &block); end
|
763
|
+
|
764
|
+
sig do
|
765
|
+
params(
|
766
|
+
of: T.nilable(Integer),
|
767
|
+
start: T.nilable(Integer),
|
768
|
+
finish: T.nilable(Integer),
|
769
|
+
load: T.nilable(T::Boolean),
|
770
|
+
error_on_ignore: T.nilable(T::Boolean),
|
771
|
+
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_AssociationRelation).void)
|
772
|
+
).returns(T::Enumerable[Squib::ActiveRecord_AssociationRelation])
|
773
|
+
end
|
774
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
751
775
|
end
|
@@ -150,6 +150,18 @@ module Subject::QueryMethodsReturningRelation
|
|
150
150
|
|
151
151
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::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::ActiveRecord_Relation).void)
|
162
|
+
).returns(T::Enumerable[Subject::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::QueryMethodsReturningAssociationRelation
|
@@ -239,6 +251,18 @@ module Subject::QueryMethodsReturningAssociationRelation
|
|
239
251
|
|
240
252
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::ActiveRecord_AssociationRelation) }
|
241
253
|
def extending(*args, &block); end
|
254
|
+
|
255
|
+
sig do
|
256
|
+
params(
|
257
|
+
of: T.nilable(Integer),
|
258
|
+
start: T.nilable(Integer),
|
259
|
+
finish: T.nilable(Integer),
|
260
|
+
load: T.nilable(T::Boolean),
|
261
|
+
error_on_ignore: T.nilable(T::Boolean),
|
262
|
+
block: T.nilable(T.proc.params(e: Subject::ActiveRecord_AssociationRelation).void)
|
263
|
+
).returns(T::Enumerable[Subject::ActiveRecord_AssociationRelation])
|
264
|
+
end
|
265
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
242
266
|
end
|
243
267
|
|
244
268
|
class Subject::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -153,6 +153,18 @@ module Subject::HABTM_Wizards::QueryMethodsReturningRelation
|
|
153
153
|
|
154
154
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
155
155
|
def extending(*args, &block); end
|
156
|
+
|
157
|
+
sig do
|
158
|
+
params(
|
159
|
+
of: T.nilable(Integer),
|
160
|
+
start: T.nilable(Integer),
|
161
|
+
finish: T.nilable(Integer),
|
162
|
+
load: T.nilable(T::Boolean),
|
163
|
+
error_on_ignore: T.nilable(T::Boolean),
|
164
|
+
block: T.nilable(T.proc.params(e: Subject::HABTM_Wizards::ActiveRecord_Relation).void)
|
165
|
+
).returns(T::Enumerable[Subject::HABTM_Wizards::ActiveRecord_Relation])
|
166
|
+
end
|
167
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
156
168
|
end
|
157
169
|
|
158
170
|
module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
@@ -242,6 +254,18 @@ module Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
|
242
254
|
|
243
255
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
244
256
|
def extending(*args, &block); end
|
257
|
+
|
258
|
+
sig do
|
259
|
+
params(
|
260
|
+
of: T.nilable(Integer),
|
261
|
+
start: T.nilable(Integer),
|
262
|
+
finish: T.nilable(Integer),
|
263
|
+
load: T.nilable(T::Boolean),
|
264
|
+
error_on_ignore: T.nilable(T::Boolean),
|
265
|
+
block: T.nilable(T.proc.params(e: Subject::HABTM_Wizards::ActiveRecord_AssociationRelation).void)
|
266
|
+
).returns(T::Enumerable[Subject::HABTM_Wizards::ActiveRecord_AssociationRelation])
|
267
|
+
end
|
268
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
245
269
|
end
|
246
270
|
|
247
271
|
class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -375,6 +375,18 @@ module Wand::QueryMethodsReturningRelation
|
|
375
375
|
|
376
376
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
|
377
377
|
def extending(*args, &block); end
|
378
|
+
|
379
|
+
sig do
|
380
|
+
params(
|
381
|
+
of: T.nilable(Integer),
|
382
|
+
start: T.nilable(Integer),
|
383
|
+
finish: T.nilable(Integer),
|
384
|
+
load: T.nilable(T::Boolean),
|
385
|
+
error_on_ignore: T.nilable(T::Boolean),
|
386
|
+
block: T.nilable(T.proc.params(e: Wand::ActiveRecord_Relation).void)
|
387
|
+
).returns(T::Enumerable[Wand::ActiveRecord_Relation])
|
388
|
+
end
|
389
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
378
390
|
end
|
379
391
|
|
380
392
|
module Wand::QueryMethodsReturningAssociationRelation
|
@@ -464,4 +476,16 @@ module Wand::QueryMethodsReturningAssociationRelation
|
|
464
476
|
|
465
477
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
|
466
478
|
def extending(*args, &block); end
|
479
|
+
|
480
|
+
sig do
|
481
|
+
params(
|
482
|
+
of: T.nilable(Integer),
|
483
|
+
start: T.nilable(Integer),
|
484
|
+
finish: T.nilable(Integer),
|
485
|
+
load: T.nilable(T::Boolean),
|
486
|
+
error_on_ignore: T.nilable(T::Boolean),
|
487
|
+
block: T.nilable(T.proc.params(e: Wand::ActiveRecord_AssociationRelation).void)
|
488
|
+
).returns(T::Enumerable[Wand::ActiveRecord_AssociationRelation])
|
489
|
+
end
|
490
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
467
491
|
end
|
@@ -735,6 +735,18 @@ module Wizard::QueryMethodsReturningRelation
|
|
735
735
|
|
736
736
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
|
737
737
|
def extending(*args, &block); end
|
738
|
+
|
739
|
+
sig do
|
740
|
+
params(
|
741
|
+
of: T.nilable(Integer),
|
742
|
+
start: T.nilable(Integer),
|
743
|
+
finish: T.nilable(Integer),
|
744
|
+
load: T.nilable(T::Boolean),
|
745
|
+
error_on_ignore: T.nilable(T::Boolean),
|
746
|
+
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_Relation).void)
|
747
|
+
).returns(T::Enumerable[Wizard::ActiveRecord_Relation])
|
748
|
+
end
|
749
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
738
750
|
end
|
739
751
|
|
740
752
|
module Wizard::QueryMethodsReturningAssociationRelation
|
@@ -824,4 +836,16 @@ module Wizard::QueryMethodsReturningAssociationRelation
|
|
824
836
|
|
825
837
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
|
826
838
|
def extending(*args, &block); end
|
839
|
+
|
840
|
+
sig do
|
841
|
+
params(
|
842
|
+
of: T.nilable(Integer),
|
843
|
+
start: T.nilable(Integer),
|
844
|
+
finish: T.nilable(Integer),
|
845
|
+
load: T.nilable(T::Boolean),
|
846
|
+
error_on_ignore: T.nilable(T::Boolean),
|
847
|
+
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_AssociationRelation).void)
|
848
|
+
).returns(T::Enumerable[Wizard::ActiveRecord_AssociationRelation])
|
849
|
+
end
|
850
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
827
851
|
end
|
@@ -153,6 +153,18 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
|
|
153
153
|
|
154
154
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
|
155
155
|
def extending(*args, &block); end
|
156
|
+
|
157
|
+
sig do
|
158
|
+
params(
|
159
|
+
of: T.nilable(Integer),
|
160
|
+
start: T.nilable(Integer),
|
161
|
+
finish: T.nilable(Integer),
|
162
|
+
load: T.nilable(T::Boolean),
|
163
|
+
error_on_ignore: T.nilable(T::Boolean),
|
164
|
+
block: T.nilable(T.proc.params(e: Wizard::HABTM_Subjects::ActiveRecord_Relation).void)
|
165
|
+
).returns(T::Enumerable[Wizard::HABTM_Subjects::ActiveRecord_Relation])
|
166
|
+
end
|
167
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
156
168
|
end
|
157
169
|
|
158
170
|
module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
|
@@ -242,6 +254,18 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
|
|
242
254
|
|
243
255
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
|
244
256
|
def extending(*args, &block); end
|
257
|
+
|
258
|
+
sig do
|
259
|
+
params(
|
260
|
+
of: T.nilable(Integer),
|
261
|
+
start: T.nilable(Integer),
|
262
|
+
finish: T.nilable(Integer),
|
263
|
+
load: T.nilable(T::Boolean),
|
264
|
+
error_on_ignore: T.nilable(T::Boolean),
|
265
|
+
block: T.nilable(T.proc.params(e: Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation).void)
|
266
|
+
).returns(T::Enumerable[Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation])
|
267
|
+
end
|
268
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
245
269
|
end
|
246
270
|
|
247
271
|
class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -729,6 +729,18 @@ module Wizard::QueryMethodsReturningRelation
|
|
729
729
|
|
730
730
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
|
731
731
|
def extending(*args, &block); end
|
732
|
+
|
733
|
+
sig do
|
734
|
+
params(
|
735
|
+
of: T.nilable(Integer),
|
736
|
+
start: T.nilable(Integer),
|
737
|
+
finish: T.nilable(Integer),
|
738
|
+
load: T.nilable(T::Boolean),
|
739
|
+
error_on_ignore: T.nilable(T::Boolean),
|
740
|
+
block: T.nilable(T.proc.params(e: Wizard::ActiveRecord_Relation).void)
|
741
|
+
).returns(T::Enumerable[Wizard::ActiveRecord_Relation])
|
742
|
+
end
|
743
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
732
744
|
end
|
733
745
|
|
734
746
|
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
|
@@ -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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
95
|
+
params(
|
96
96
|
start: T.nilable(Integer),
|
97
97
|
finish: T.nilable(Integer),
|
98
98
|
batch_size: T.nilable(Integer),
|
@@ -132,6 +132,18 @@ module ActiveStorage::Attachment::QueryMethodsReturningRelation
|
|
132
132
|
|
133
133
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
134
134
|
def extending(*args, &block); end
|
135
|
+
|
136
|
+
sig do
|
137
|
+
params(
|
138
|
+
of: T.nilable(Integer),
|
139
|
+
start: T.nilable(Integer),
|
140
|
+
finish: T.nilable(Integer),
|
141
|
+
load: T.nilable(T::Boolean),
|
142
|
+
error_on_ignore: T.nilable(T::Boolean),
|
143
|
+
block: T.nilable(T.proc.params(e: ActiveStorage::Attachment::ActiveRecord_Relation).void)
|
144
|
+
).returns(T::Enumerable[ActiveStorage::Attachment::ActiveRecord_Relation])
|
145
|
+
end
|
146
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
135
147
|
end
|
136
148
|
|
137
149
|
module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
@@ -221,6 +233,18 @@ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
|
221
233
|
|
222
234
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
223
235
|
def extending(*args, &block); end
|
236
|
+
|
237
|
+
sig do
|
238
|
+
params(
|
239
|
+
of: T.nilable(Integer),
|
240
|
+
start: T.nilable(Integer),
|
241
|
+
finish: T.nilable(Integer),
|
242
|
+
load: T.nilable(T::Boolean),
|
243
|
+
error_on_ignore: T.nilable(T::Boolean),
|
244
|
+
block: T.nilable(T.proc.params(e: ActiveStorage::Attachment::ActiveRecord_AssociationRelation).void)
|
245
|
+
).returns(T::Enumerable[ActiveStorage::Attachment::ActiveRecord_AssociationRelation])
|
246
|
+
end
|
247
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
224
248
|
end
|
225
249
|
|
226
250
|
class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|