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
@@ -165,6 +165,18 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
|
165
165
|
|
166
166
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
|
167
167
|
def extending(*args, &block); end
|
168
|
+
|
169
|
+
sig do
|
170
|
+
params(
|
171
|
+
of: T.nilable(Integer),
|
172
|
+
start: T.nilable(Integer),
|
173
|
+
finish: T.nilable(Integer),
|
174
|
+
load: T.nilable(T::Boolean),
|
175
|
+
error_on_ignore: T.nilable(T::Boolean),
|
176
|
+
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_Relation).void)
|
177
|
+
).returns(T::Enumerable[SpellBook::HABTM_Spells::ActiveRecord_Relation])
|
178
|
+
end
|
179
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
168
180
|
end
|
169
181
|
|
170
182
|
module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
@@ -266,6 +278,18 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
|
266
278
|
|
267
279
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
|
268
280
|
def extending(*args, &block); end
|
281
|
+
|
282
|
+
sig do
|
283
|
+
params(
|
284
|
+
of: T.nilable(Integer),
|
285
|
+
start: T.nilable(Integer),
|
286
|
+
finish: T.nilable(Integer),
|
287
|
+
load: T.nilable(T::Boolean),
|
288
|
+
error_on_ignore: T.nilable(T::Boolean),
|
289
|
+
block: T.nilable(T.proc.params(e: SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation).void)
|
290
|
+
).returns(T::Enumerable[SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation])
|
291
|
+
end
|
292
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
269
293
|
end
|
270
294
|
|
271
295
|
class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
@@ -290,9 +290,125 @@ class Squib < Wizard
|
|
290
290
|
|
291
291
|
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
292
292
|
def self.quidditch_positions; end
|
293
|
+
|
294
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
295
|
+
def self.Gryffindor(*args); end
|
296
|
+
|
297
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
298
|
+
def self.Hagrid(*args); end
|
299
|
+
|
300
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
301
|
+
def self.Hufflepuff(*args); end
|
302
|
+
|
303
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
304
|
+
def self.Ravenclaw(*args); end
|
305
|
+
|
306
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
307
|
+
def self.Slytherin(*args); end
|
308
|
+
|
309
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
310
|
+
def self.black_hair(*args); end
|
311
|
+
|
312
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
313
|
+
def self.blonde_hair(*args); end
|
314
|
+
|
315
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
316
|
+
def self.broom_firebolt(*args); end
|
317
|
+
|
318
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
319
|
+
def self.broom_nimbus(*args); end
|
320
|
+
|
321
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
322
|
+
def self.brown_hair(*args); end
|
323
|
+
|
324
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
325
|
+
def self.color_blue_eyes(*args); end
|
326
|
+
|
327
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
328
|
+
def self.color_brown_eyes(*args); end
|
329
|
+
|
330
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
331
|
+
def self.color_green_eyes(*args); end
|
332
|
+
|
333
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
334
|
+
def self.not_Gryffindor(*args); end
|
335
|
+
|
336
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
337
|
+
def self.not_Hagrid(*args); end
|
338
|
+
|
339
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
340
|
+
def self.not_Hufflepuff(*args); end
|
341
|
+
|
342
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
343
|
+
def self.not_Ravenclaw(*args); end
|
344
|
+
|
345
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
346
|
+
def self.not_Slytherin(*args); end
|
347
|
+
|
348
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
349
|
+
def self.not_black_hair(*args); end
|
350
|
+
|
351
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
352
|
+
def self.not_blonde_hair(*args); end
|
353
|
+
|
354
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
355
|
+
def self.not_broom_firebolt(*args); end
|
356
|
+
|
357
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
358
|
+
def self.not_broom_nimbus(*args); end
|
359
|
+
|
360
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
361
|
+
def self.not_brown_hair(*args); end
|
362
|
+
|
363
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
364
|
+
def self.not_color_blue_eyes(*args); end
|
365
|
+
|
366
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
367
|
+
def self.not_color_brown_eyes(*args); end
|
368
|
+
|
369
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
370
|
+
def self.not_color_green_eyes(*args); end
|
371
|
+
|
372
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
373
|
+
def self.not_quidditch_beater(*args); end
|
374
|
+
|
375
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
376
|
+
def self.not_quidditch_chaser(*args); end
|
377
|
+
|
378
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
379
|
+
def self.not_quidditch_keeper(*args); end
|
380
|
+
|
381
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
382
|
+
def self.not_quidditch_seeker(*args); end
|
383
|
+
|
384
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
385
|
+
def self.quidditch_beater(*args); end
|
386
|
+
|
387
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
388
|
+
def self.quidditch_chaser(*args); end
|
389
|
+
|
390
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
391
|
+
def self.quidditch_keeper(*args); end
|
392
|
+
|
393
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
394
|
+
def self.quidditch_seeker(*args); end
|
395
|
+
|
396
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
397
|
+
def self.recent(*args); end
|
398
|
+
|
399
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
400
|
+
def self.with_attached_hats(*args); end
|
401
|
+
|
402
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
403
|
+
def self.with_attached_school_photo(*args); end
|
293
404
|
end
|
294
405
|
|
295
|
-
|
406
|
+
class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
407
|
+
include Squib::ActiveRelation_WhereNot
|
408
|
+
include Squib::CustomFinderMethods
|
409
|
+
include Squib::QueryMethodsReturningRelation
|
410
|
+
Elem = type_member(fixed: Squib)
|
411
|
+
|
296
412
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
297
413
|
def Gryffindor(*args); end
|
298
414
|
|
@@ -403,108 +519,131 @@ module Squib::QueryMethodsReturningRelation
|
|
403
519
|
|
404
520
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
405
521
|
def with_attached_school_photo(*args); end
|
522
|
+
end
|
406
523
|
|
407
|
-
|
408
|
-
|
524
|
+
class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
525
|
+
include Squib::ActiveRelation_WhereNot
|
526
|
+
include Squib::CustomFinderMethods
|
527
|
+
include Squib::QueryMethodsReturningAssociationRelation
|
528
|
+
Elem = type_member(fixed: Squib)
|
409
529
|
|
410
|
-
sig { params(
|
411
|
-
def
|
530
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
531
|
+
def Gryffindor(*args); end
|
412
532
|
|
413
|
-
sig { params(args: T.untyped).returns(Squib::
|
414
|
-
def
|
533
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
534
|
+
def Hagrid(*args); end
|
415
535
|
|
416
|
-
sig { params(args: T.untyped).returns(Squib::
|
417
|
-
def
|
536
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
537
|
+
def Hufflepuff(*args); end
|
418
538
|
|
419
|
-
sig { params(args: T.untyped).returns(Squib::
|
420
|
-
def
|
539
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
540
|
+
def Ravenclaw(*args); end
|
421
541
|
|
422
|
-
sig { params(args: T.untyped).returns(Squib::
|
423
|
-
def
|
542
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
543
|
+
def Slytherin(*args); end
|
424
544
|
|
425
|
-
sig { params(args: T.untyped).returns(Squib::
|
426
|
-
def
|
545
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
546
|
+
def black_hair(*args); end
|
427
547
|
|
428
|
-
sig { params(args: T.untyped).returns(Squib::
|
429
|
-
def
|
548
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
549
|
+
def blonde_hair(*args); end
|
430
550
|
|
431
|
-
sig { params(args: T.untyped).returns(Squib::
|
432
|
-
def
|
551
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
552
|
+
def broom_firebolt(*args); end
|
433
553
|
|
434
|
-
sig { params(args: T.untyped).returns(Squib::
|
435
|
-
def
|
554
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
555
|
+
def broom_nimbus(*args); end
|
436
556
|
|
437
|
-
sig { params(args: T.untyped).returns(Squib::
|
438
|
-
def
|
557
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
558
|
+
def brown_hair(*args); end
|
439
559
|
|
440
|
-
sig { params(args: T.untyped).returns(Squib::
|
441
|
-
def
|
560
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
561
|
+
def color_blue_eyes(*args); end
|
442
562
|
|
443
|
-
sig { params(args: T.untyped).returns(Squib::
|
444
|
-
def
|
563
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
564
|
+
def color_brown_eyes(*args); end
|
445
565
|
|
446
|
-
sig { params(args: T.untyped).returns(Squib::
|
447
|
-
def
|
566
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
567
|
+
def color_green_eyes(*args); end
|
448
568
|
|
449
|
-
sig { params(args: T.untyped).returns(Squib::
|
450
|
-
def
|
569
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
570
|
+
def not_Gryffindor(*args); end
|
451
571
|
|
452
|
-
sig { params(args: T.untyped).returns(Squib::
|
453
|
-
def
|
572
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
573
|
+
def not_Hagrid(*args); end
|
454
574
|
|
455
|
-
sig { params(args: T.untyped).returns(Squib::
|
456
|
-
def
|
575
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
576
|
+
def not_Hufflepuff(*args); end
|
457
577
|
|
458
|
-
sig { params(args: T.untyped).returns(Squib::
|
459
|
-
def
|
578
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
579
|
+
def not_Ravenclaw(*args); end
|
460
580
|
|
461
|
-
sig { params(args: T.untyped).returns(Squib::
|
462
|
-
def
|
581
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
582
|
+
def not_Slytherin(*args); end
|
463
583
|
|
464
|
-
sig { params(args: T.untyped).returns(Squib::
|
465
|
-
def
|
584
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
585
|
+
def not_black_hair(*args); end
|
466
586
|
|
467
|
-
sig { params(args: T.untyped).returns(Squib::
|
468
|
-
def
|
587
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
588
|
+
def not_blonde_hair(*args); end
|
469
589
|
|
470
|
-
sig { params(args: T.untyped).returns(Squib::
|
471
|
-
def
|
590
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
591
|
+
def not_broom_firebolt(*args); end
|
472
592
|
|
473
|
-
sig { params(args: T.untyped).returns(Squib::
|
474
|
-
def
|
593
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
594
|
+
def not_broom_nimbus(*args); end
|
475
595
|
|
476
|
-
sig { params(args: T.untyped).returns(Squib::
|
477
|
-
def
|
596
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
597
|
+
def not_brown_hair(*args); end
|
478
598
|
|
479
|
-
sig { params(args: T.untyped).returns(Squib::
|
480
|
-
def
|
599
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
600
|
+
def not_color_blue_eyes(*args); end
|
481
601
|
|
482
|
-
sig { params(args: T.untyped).returns(Squib::
|
483
|
-
def
|
602
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
603
|
+
def not_color_brown_eyes(*args); end
|
484
604
|
|
485
|
-
sig { params(args: T.untyped).returns(Squib::
|
486
|
-
def
|
605
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
606
|
+
def not_color_green_eyes(*args); end
|
487
607
|
|
488
|
-
sig { params(args: T.untyped).returns(Squib::
|
489
|
-
def
|
608
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
609
|
+
def not_quidditch_beater(*args); end
|
490
610
|
|
491
|
-
sig { params(args: T.untyped).returns(Squib::
|
492
|
-
def
|
611
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
612
|
+
def not_quidditch_chaser(*args); end
|
493
613
|
|
494
|
-
sig { params(args: T.untyped).returns(Squib::
|
495
|
-
def
|
614
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
615
|
+
def not_quidditch_keeper(*args); end
|
496
616
|
|
497
|
-
sig { params(args: T.untyped).returns(Squib::
|
498
|
-
def
|
617
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
618
|
+
def not_quidditch_seeker(*args); end
|
499
619
|
|
500
|
-
sig { params(args: T.untyped).returns(Squib::
|
501
|
-
def
|
620
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
621
|
+
def quidditch_beater(*args); end
|
502
622
|
|
503
|
-
sig { params(args: T.untyped
|
504
|
-
def
|
623
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
624
|
+
def quidditch_chaser(*args); end
|
625
|
+
|
626
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
627
|
+
def quidditch_keeper(*args); end
|
628
|
+
|
629
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
630
|
+
def quidditch_seeker(*args); end
|
631
|
+
|
632
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
633
|
+
def recent(*args); end
|
634
|
+
|
635
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
636
|
+
def with_attached_hats(*args); end
|
637
|
+
|
638
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
639
|
+
def with_attached_school_photo(*args); end
|
505
640
|
end
|
506
641
|
|
507
|
-
|
642
|
+
class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
643
|
+
include Squib::CustomFinderMethods
|
644
|
+
include Squib::QueryMethodsReturningAssociationRelation
|
645
|
+
Elem = type_member(fixed: Squib)
|
646
|
+
|
508
647
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
509
648
|
def Gryffindor(*args); end
|
510
649
|
|
@@ -616,6 +755,133 @@ module Squib::QueryMethodsReturningAssociationRelation
|
|
616
755
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
617
756
|
def with_attached_school_photo(*args); end
|
618
757
|
|
758
|
+
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
759
|
+
def <<(*records); end
|
760
|
+
|
761
|
+
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
762
|
+
def append(*records); end
|
763
|
+
|
764
|
+
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
765
|
+
def push(*records); end
|
766
|
+
|
767
|
+
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
768
|
+
def concat(*records); end
|
769
|
+
end
|
770
|
+
|
771
|
+
module Squib::QueryMethodsReturningRelation
|
772
|
+
sig { returns(Squib::ActiveRecord_Relation) }
|
773
|
+
def all; end
|
774
|
+
|
775
|
+
sig { params(block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
776
|
+
def unscoped(&block); end
|
777
|
+
|
778
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
779
|
+
def select(*args); end
|
780
|
+
|
781
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
782
|
+
def reselect(*args); end
|
783
|
+
|
784
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
785
|
+
def order(*args); end
|
786
|
+
|
787
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
788
|
+
def reorder(*args); end
|
789
|
+
|
790
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
791
|
+
def group(*args); end
|
792
|
+
|
793
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
794
|
+
def limit(*args); end
|
795
|
+
|
796
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
797
|
+
def offset(*args); end
|
798
|
+
|
799
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
800
|
+
def joins(*args); end
|
801
|
+
|
802
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
803
|
+
def left_joins(*args); end
|
804
|
+
|
805
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
806
|
+
def left_outer_joins(*args); end
|
807
|
+
|
808
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
809
|
+
def where(*args); end
|
810
|
+
|
811
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
812
|
+
def rewhere(*args); end
|
813
|
+
|
814
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
815
|
+
def preload(*args); end
|
816
|
+
|
817
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
818
|
+
def extract_associated(*args); end
|
819
|
+
|
820
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
821
|
+
def eager_load(*args); end
|
822
|
+
|
823
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
824
|
+
def includes(*args); end
|
825
|
+
|
826
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
827
|
+
def from(*args); end
|
828
|
+
|
829
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
830
|
+
def lock(*args); end
|
831
|
+
|
832
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
833
|
+
def readonly(*args); end
|
834
|
+
|
835
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
836
|
+
def or(*args); end
|
837
|
+
|
838
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
839
|
+
def having(*args); end
|
840
|
+
|
841
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
842
|
+
def create_with(*args); end
|
843
|
+
|
844
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
845
|
+
def distinct(*args); end
|
846
|
+
|
847
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
848
|
+
def references(*args); end
|
849
|
+
|
850
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
851
|
+
def none(*args); end
|
852
|
+
|
853
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
854
|
+
def unscope(*args); end
|
855
|
+
|
856
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
857
|
+
def optimizer_hints(*args); end
|
858
|
+
|
859
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
860
|
+
def merge(*args); end
|
861
|
+
|
862
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
863
|
+
def except(*args); end
|
864
|
+
|
865
|
+
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
866
|
+
def only(*args); end
|
867
|
+
|
868
|
+
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
869
|
+
def extending(*args, &block); end
|
870
|
+
|
871
|
+
sig do
|
872
|
+
params(
|
873
|
+
of: T.nilable(Integer),
|
874
|
+
start: T.nilable(Integer),
|
875
|
+
finish: T.nilable(Integer),
|
876
|
+
load: T.nilable(T::Boolean),
|
877
|
+
error_on_ignore: T.nilable(T::Boolean),
|
878
|
+
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_Relation).void)
|
879
|
+
).returns(T::Enumerable[Squib::ActiveRecord_Relation])
|
880
|
+
end
|
881
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
882
|
+
end
|
883
|
+
|
884
|
+
module Squib::QueryMethodsReturningAssociationRelation
|
619
885
|
sig { returns(Squib::ActiveRecord_AssociationRelation) }
|
620
886
|
def all; end
|
621
887
|
|
@@ -714,20 +980,18 @@ module Squib::QueryMethodsReturningAssociationRelation
|
|
714
980
|
|
715
981
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_AssociationRelation) }
|
716
982
|
def extending(*args, &block); end
|
717
|
-
end
|
718
|
-
|
719
|
-
class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
720
|
-
include Squib::ActiveRelation_WhereNot
|
721
|
-
include Squib::CustomFinderMethods
|
722
|
-
include Squib::QueryMethodsReturningRelation
|
723
|
-
Elem = type_member(fixed: Squib)
|
724
|
-
end
|
725
983
|
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
984
|
+
sig do
|
985
|
+
params(
|
986
|
+
of: T.nilable(Integer),
|
987
|
+
start: T.nilable(Integer),
|
988
|
+
finish: T.nilable(Integer),
|
989
|
+
load: T.nilable(T::Boolean),
|
990
|
+
error_on_ignore: T.nilable(T::Boolean),
|
991
|
+
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_AssociationRelation).void)
|
992
|
+
).returns(T::Enumerable[Squib::ActiveRecord_AssociationRelation])
|
993
|
+
end
|
994
|
+
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
731
995
|
end
|
732
996
|
|
733
997
|
module Squib::GeneratedAssociationMethods
|
@@ -801,23 +1065,5 @@ module Squib::GeneratedAssociationMethods
|
|
801
1065
|
def hats; end
|
802
1066
|
|
803
1067
|
sig { params(attachables: T.untyped).returns(T.untyped) }
|
804
|
-
def hats=(
|
805
|
-
end
|
806
|
-
|
807
|
-
class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
808
|
-
include Squib::CustomFinderMethods
|
809
|
-
include Squib::QueryMethodsReturningAssociationRelation
|
810
|
-
Elem = type_member(fixed: Squib)
|
811
|
-
|
812
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
813
|
-
def <<(*records); end
|
814
|
-
|
815
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
816
|
-
def append(*records); end
|
817
|
-
|
818
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
819
|
-
def push(*records); end
|
820
|
-
|
821
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
822
|
-
def concat(*records); end
|
1068
|
+
def hats=(attachables); end
|
823
1069
|
end
|