sorbet-rails 0.5.4 → 0.5.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 +1 -1
- data/README.md +48 -17
- data/lib/bundled_rbi/parameters.rbi +50 -0
- data/lib/sorbet-rails.rb +1 -0
- data/lib/sorbet-rails/gem_plugins/friendly_id_plugin.rb +1 -1
- data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +1 -1
- data/lib/sorbet-rails/gem_plugins/pg_search_plugin.rb +1 -1
- data/lib/sorbet-rails/mailer_rbi_formatter.rb +2 -2
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_finder_methods.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_relation_where_not.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_storage_methods.rb +1 -1
- data/lib/sorbet-rails/model_plugins/base.rb +1 -1
- data/lib/sorbet-rails/model_plugins/custom_finder_methods.rb +1 -1
- data/lib/sorbet-rails/model_plugins/enumerable_collections.rb +1 -1
- data/lib/sorbet-rails/model_plugins/plugins.rb +0 -1
- data/lib/sorbet-rails/model_rbi_formatter.rb +5 -3
- data/lib/sorbet-rails/{model_plugins → rails_mixins}/active_record_overrides.rb +0 -0
- data/lib/sorbet-rails/{custom_finder_methods.rb → rails_mixins/custom_finder_methods.rb} +1 -1
- data/lib/sorbet-rails/rails_mixins/custom_params_methods.rb +46 -0
- data/lib/sorbet-rails/railtie.rb +8 -1
- data/lib/sorbet-rails/routes_rbi_formatter.rb +1 -2
- data/lib/sorbet-rails/tasks/rails_rbi.rake +22 -0
- data/lib/sorbet-rails/type_assert/type_assert.rb +18 -0
- data/lib/sorbet-rails/type_assert/type_assert_impl.rb +26 -0
- data/lib/sorbet-rails/type_assert/type_assert_interface.rb +16 -0
- data/sorbet-rails.gemspec +2 -2
- data/spec/custom_finder_methods_spec.rb +5 -0
- data/spec/custom_params_methods_spec.rb +138 -0
- data/spec/generators/sorbet_test_cases.rb +49 -0
- data/spec/model_rbi_formatter_spec.rb +10 -3
- data/spec/sorbet_spec.rb +1 -5
- data/spec/support/v4.2/Gemfile.lock +3 -3
- data/spec/support/v4.2/sorbet_test_cases.rb +49 -0
- data/spec/support/v5.0/Gemfile.lock +3 -3
- data/spec/support/v5.0/sorbet_test_cases.rb +49 -0
- data/spec/support/v5.1/Gemfile.lock +3 -3
- data/spec/support/v5.1/sorbet_test_cases.rb +49 -0
- data/spec/support/v5.2/Gemfile.lock +3 -3
- data/spec/support/v5.2/sorbet_test_cases.rb +49 -0
- data/spec/support/v6.0/Gemfile.lock +3 -3
- data/spec/support/v6.0/sorbet_test_cases.rb +49 -0
- data/spec/test_data/v4.2/expected_helpers.rbi +1 -1
- data/spec/test_data/v4.2/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v4.2/expected_potion.rbi +3 -3
- data/spec/test_data/v4.2/expected_spell_book.rbi +3 -3
- data/spec/test_data/v4.2/expected_wand.rbi +3 -3
- data/spec/test_data/v4.2/expected_wizard.rbi +3 -3
- data/spec/test_data/v4.2/expected_wizard_wo_spellbook.rbi +3 -3
- data/spec/test_data/v5.0/expected_helpers.rbi +1 -1
- data/spec/test_data/v5.0/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +3 -3
- data/spec/test_data/v5.0/expected_potion.rbi +3 -3
- data/spec/test_data/v5.0/expected_schema_migration.rbi +3 -3
- data/spec/test_data/v5.0/expected_spell_book.rbi +3 -3
- data/spec/test_data/v5.0/expected_wand.rbi +3 -3
- data/spec/test_data/v5.0/expected_wizard.rbi +3 -3
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +3 -3
- data/spec/test_data/v5.1/expected_helpers.rbi +1 -1
- data/spec/test_data/v5.1/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +3 -3
- data/spec/test_data/v5.1/expected_potion.rbi +3 -3
- data/spec/test_data/v5.1/expected_schema_migration.rbi +3 -3
- data/spec/test_data/v5.1/expected_spell_book.rbi +3 -3
- data/spec/test_data/v5.1/expected_wand.rbi +3 -3
- data/spec/test_data/v5.1/expected_wizard.rbi +3 -3
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +3 -3
- data/spec/test_data/v5.2/expected_attachment.rbi +3 -3
- data/spec/test_data/v5.2/expected_blob.rbi +3 -3
- data/spec/test_data/v5.2/expected_helpers.rbi +1 -1
- data/spec/test_data/v5.2/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +3 -3
- data/spec/test_data/v5.2/expected_potion.rbi +3 -3
- data/spec/test_data/v5.2/expected_schema_migration.rbi +3 -3
- data/spec/test_data/v5.2/expected_spell_book.rbi +3 -3
- data/spec/test_data/v5.2/expected_wand.rbi +3 -3
- data/spec/test_data/v5.2/expected_wizard.rbi +3 -3
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +3 -3
- data/spec/test_data/v6.0/expected_attachment.rbi +3 -3
- data/spec/test_data/v6.0/expected_blob.rbi +3 -3
- data/spec/test_data/v6.0/expected_helpers.rbi +1 -1
- data/spec/test_data/v6.0/expected_helpers_with_application_and_devise_helpers.rbi +1 -1
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +3 -3
- data/spec/test_data/v6.0/expected_potion.rbi +3 -3
- data/spec/test_data/v6.0/expected_schema_migration.rbi +3 -3
- data/spec/test_data/v6.0/expected_spell_book.rbi +3 -3
- data/spec/test_data/v6.0/expected_wand.rbi +3 -3
- data/spec/test_data/v6.0/expected_wizard.rbi +3 -3
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +3 -3
- metadata +12 -33
- data/spec/test_data/v5.2-no-sorbet/expected_attachment.rbi +0 -725
- data/spec/test_data/v5.2-no-sorbet/expected_blob.rbi +0 -755
- data/spec/test_data/v5.2-no-sorbet/expected_helpers.rbi +0 -22
- data/spec/test_data/v5.2-no-sorbet/expected_helpers_with_application_and_devise_helpers.rbi +0 -29
- data/spec/test_data/v5.2-no-sorbet/expected_internal_metadata.rbi +0 -749
- data/spec/test_data/v5.2-no-sorbet/expected_no_routes.rbi +0 -4
- data/spec/test_data/v5.2-no-sorbet/expected_potion.rbi +0 -708
- data/spec/test_data/v5.2-no-sorbet/expected_routes.rbi +0 -54
- data/spec/test_data/v5.2-no-sorbet/expected_schema_migration.rbi +0 -722
- data/spec/test_data/v5.2-no-sorbet/expected_spell_book.rbi +0 -822
- data/spec/test_data/v5.2-no-sorbet/expected_srb_tc_output.txt +0 -1
- data/spec/test_data/v5.2-no-sorbet/expected_wand.rbi +0 -933
- data/spec/test_data/v5.2-no-sorbet/expected_wizard.rbi +0 -885
- data/spec/test_data/v5.2-no-sorbet/expected_wizard_wo_spellbook.rbi +0 -885
@@ -367,7 +367,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
|
367
367
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
368
368
|
def one?(*args); end
|
369
369
|
|
370
|
-
sig {
|
370
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Blob).void).void }
|
371
371
|
def each(&block); end
|
372
372
|
|
373
373
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Blob]) }
|
@@ -546,7 +546,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso
|
|
546
546
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
547
547
|
def one?(*args); end
|
548
548
|
|
549
|
-
sig {
|
549
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Blob).void).void }
|
550
550
|
def each(&block); end
|
551
551
|
|
552
552
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Blob]) }
|
@@ -724,7 +724,7 @@ class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRec
|
|
724
724
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
725
725
|
def one?(*args); end
|
726
726
|
|
727
|
-
sig {
|
727
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Blob).void).void }
|
728
728
|
def each(&block); end
|
729
729
|
|
730
730
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Blob]) }
|
@@ -373,7 +373,7 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela
|
|
373
373
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
374
374
|
def one?(*args); end
|
375
375
|
|
376
|
-
sig {
|
376
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::InternalMetadata).void).void }
|
377
377
|
def each(&block); end
|
378
378
|
|
379
379
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::InternalMetadata]) }
|
@@ -546,7 +546,7 @@ class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveR
|
|
546
546
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
547
547
|
def one?(*args); end
|
548
548
|
|
549
|
-
sig {
|
549
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::InternalMetadata).void).void }
|
550
550
|
def each(&block); end
|
551
551
|
|
552
552
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::InternalMetadata]) }
|
@@ -718,7 +718,7 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy
|
|
718
718
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
719
719
|
def one?(*args); end
|
720
720
|
|
721
|
-
sig {
|
721
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::InternalMetadata).void).void }
|
722
722
|
def each(&block); end
|
723
723
|
|
724
724
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::InternalMetadata]) }
|
@@ -332,7 +332,7 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
|
|
332
332
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
333
333
|
def one?(*args); end
|
334
334
|
|
335
|
-
sig {
|
335
|
+
sig { override.params(block: T.proc.params(e: Potion).void).void }
|
336
336
|
def each(&block); end
|
337
337
|
|
338
338
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -505,7 +505,7 @@ class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
505
505
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
506
506
|
def one?(*args); end
|
507
507
|
|
508
|
-
sig {
|
508
|
+
sig { override.params(block: T.proc.params(e: Potion).void).void }
|
509
509
|
def each(&block); end
|
510
510
|
|
511
511
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -677,7 +677,7 @@ class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
677
677
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
678
678
|
def one?(*args); end
|
679
679
|
|
680
|
-
sig {
|
680
|
+
sig { override.params(block: T.proc.params(e: Potion).void).void }
|
681
681
|
def each(&block); end
|
682
682
|
|
683
683
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -346,7 +346,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
|
|
346
346
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
347
347
|
def one?(*args); end
|
348
348
|
|
349
|
-
sig {
|
349
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).void }
|
350
350
|
def each(&block); end
|
351
351
|
|
352
352
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -519,7 +519,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRe
|
|
519
519
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
520
520
|
def one?(*args); end
|
521
521
|
|
522
|
-
sig {
|
522
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).void }
|
523
523
|
def each(&block); end
|
524
524
|
|
525
525
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -691,7 +691,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy <
|
|
691
691
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
692
692
|
def one?(*args); end
|
693
693
|
|
694
|
-
sig {
|
694
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).void }
|
695
695
|
def each(&block); end
|
696
696
|
|
697
697
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -428,7 +428,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
428
428
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
429
429
|
def one?(*args); end
|
430
430
|
|
431
|
-
sig {
|
431
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).void }
|
432
432
|
def each(&block); end
|
433
433
|
|
434
434
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -610,7 +610,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
|
|
610
610
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
611
611
|
def one?(*args); end
|
612
612
|
|
613
|
-
sig {
|
613
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).void }
|
614
614
|
def each(&block); end
|
615
615
|
|
616
616
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -791,7 +791,7 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
|
|
791
791
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
792
792
|
def one?(*args); end
|
793
793
|
|
794
|
-
sig {
|
794
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).void }
|
795
795
|
def each(&block); end
|
796
796
|
|
797
797
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -533,7 +533,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
|
533
533
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
534
534
|
def one?(*args); end
|
535
535
|
|
536
|
-
sig {
|
536
|
+
sig { override.params(block: T.proc.params(e: Wand).void).void }
|
537
537
|
def each(&block); end
|
538
538
|
|
539
539
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -718,7 +718,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
|
718
718
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
719
719
|
def one?(*args); end
|
720
720
|
|
721
|
-
sig {
|
721
|
+
sig { override.params(block: T.proc.params(e: Wand).void).void }
|
722
722
|
def each(&block); end
|
723
723
|
|
724
724
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -902,7 +902,7 @@ class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associatio
|
|
902
902
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
903
903
|
def one?(*args); end
|
904
904
|
|
905
|
-
sig {
|
905
|
+
sig { override.params(block: T.proc.params(e: Wand).void).void }
|
906
906
|
def each(&block); end
|
907
907
|
|
908
908
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -731,7 +731,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
731
731
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
732
732
|
def one?(*args); end
|
733
733
|
|
734
|
-
sig {
|
734
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
735
735
|
def each(&block); end
|
736
736
|
|
737
737
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -964,7 +964,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
964
964
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
965
965
|
def one?(*args); end
|
966
966
|
|
967
|
-
sig {
|
967
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
968
968
|
def each(&block); end
|
969
969
|
|
970
970
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -1196,7 +1196,7 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
1196
1196
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1197
1197
|
def one?(*args); end
|
1198
1198
|
|
1199
|
-
sig {
|
1199
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
1200
1200
|
def each(&block); end
|
1201
1201
|
|
1202
1202
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -731,7 +731,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
731
731
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
732
732
|
def one?(*args); end
|
733
733
|
|
734
|
-
sig {
|
734
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
735
735
|
def each(&block); end
|
736
736
|
|
737
737
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -964,7 +964,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
964
964
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
965
965
|
def one?(*args); end
|
966
966
|
|
967
|
-
sig {
|
967
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
968
968
|
def each(&block); end
|
969
969
|
|
970
970
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -1196,7 +1196,7 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
1196
1196
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1197
1197
|
def one?(*args); end
|
1198
1198
|
|
1199
|
-
sig {
|
1199
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
1200
1200
|
def each(&block); end
|
1201
1201
|
|
1202
1202
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -373,7 +373,7 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
|
373
373
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
374
374
|
def one?(*args); end
|
375
375
|
|
376
|
-
sig {
|
376
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).void }
|
377
377
|
def each(&block); end
|
378
378
|
|
379
379
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Attachment]) }
|
@@ -558,7 +558,7 @@ class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord
|
|
558
558
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
559
559
|
def one?(*args); end
|
560
560
|
|
561
|
-
sig {
|
561
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).void }
|
562
562
|
def each(&block); end
|
563
563
|
|
564
564
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Attachment]) }
|
@@ -742,7 +742,7 @@ class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < Act
|
|
742
742
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
743
743
|
def one?(*args); end
|
744
744
|
|
745
|
-
sig {
|
745
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Attachment).void).void }
|
746
746
|
def each(&block); end
|
747
747
|
|
748
748
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Attachment]) }
|
@@ -369,7 +369,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
|
369
369
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
370
370
|
def one?(*args); end
|
371
371
|
|
372
|
-
sig {
|
372
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Blob).void).void }
|
373
373
|
def each(&block); end
|
374
374
|
|
375
375
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Blob]) }
|
@@ -560,7 +560,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso
|
|
560
560
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
561
561
|
def one?(*args); end
|
562
562
|
|
563
|
-
sig {
|
563
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Blob).void).void }
|
564
564
|
def each(&block); end
|
565
565
|
|
566
566
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Blob]) }
|
@@ -750,7 +750,7 @@ class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRec
|
|
750
750
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
751
751
|
def one?(*args); end
|
752
752
|
|
753
|
-
sig {
|
753
|
+
sig { override.params(block: T.proc.params(e: ActiveStorage::Blob).void).void }
|
754
754
|
def each(&block); end
|
755
755
|
|
756
756
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveStorage::Blob]) }
|
@@ -397,7 +397,7 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela
|
|
397
397
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
398
398
|
def one?(*args); end
|
399
399
|
|
400
|
-
sig {
|
400
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::InternalMetadata).void).void }
|
401
401
|
def each(&block); end
|
402
402
|
|
403
403
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::InternalMetadata]) }
|
@@ -582,7 +582,7 @@ class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveR
|
|
582
582
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
583
583
|
def one?(*args); end
|
584
584
|
|
585
|
-
sig {
|
585
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::InternalMetadata).void).void }
|
586
586
|
def each(&block); end
|
587
587
|
|
588
588
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::InternalMetadata]) }
|
@@ -766,7 +766,7 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy
|
|
766
766
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
767
767
|
def one?(*args); end
|
768
768
|
|
769
|
-
sig {
|
769
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::InternalMetadata).void).void }
|
770
770
|
def each(&block); end
|
771
771
|
|
772
772
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::InternalMetadata]) }
|
@@ -356,7 +356,7 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
|
|
356
356
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
357
357
|
def one?(*args); end
|
358
358
|
|
359
|
-
sig {
|
359
|
+
sig { override.params(block: T.proc.params(e: Potion).void).void }
|
360
360
|
def each(&block); end
|
361
361
|
|
362
362
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -541,7 +541,7 @@ class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
541
541
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
542
542
|
def one?(*args); end
|
543
543
|
|
544
|
-
sig {
|
544
|
+
sig { override.params(block: T.proc.params(e: Potion).void).void }
|
545
545
|
def each(&block); end
|
546
546
|
|
547
547
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -725,7 +725,7 @@ class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
725
725
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
726
726
|
def one?(*args); end
|
727
727
|
|
728
|
-
sig {
|
728
|
+
sig { override.params(block: T.proc.params(e: Potion).void).void }
|
729
729
|
def each(&block); end
|
730
730
|
|
731
731
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Potion]) }
|
@@ -370,7 +370,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
|
|
370
370
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
371
371
|
def one?(*args); end
|
372
372
|
|
373
|
-
sig {
|
373
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).void }
|
374
374
|
def each(&block); end
|
375
375
|
|
376
376
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -555,7 +555,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRe
|
|
555
555
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
556
556
|
def one?(*args); end
|
557
557
|
|
558
|
-
sig {
|
558
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).void }
|
559
559
|
def each(&block); end
|
560
560
|
|
561
561
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -739,7 +739,7 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy <
|
|
739
739
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
740
740
|
def one?(*args); end
|
741
741
|
|
742
|
-
sig {
|
742
|
+
sig { override.params(block: T.proc.params(e: ActiveRecord::SchemaMigration).void).void }
|
743
743
|
def each(&block); end
|
744
744
|
|
745
745
|
sig { params(level: T.nilable(Integer)).returns(T::Array[ActiveRecord::SchemaMigration]) }
|
@@ -470,7 +470,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
470
470
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
471
471
|
def one?(*args); end
|
472
472
|
|
473
|
-
sig {
|
473
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).void }
|
474
474
|
def each(&block); end
|
475
475
|
|
476
476
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -673,7 +673,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
|
|
673
673
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
674
674
|
def one?(*args); end
|
675
675
|
|
676
|
-
sig {
|
676
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).void }
|
677
677
|
def each(&block); end
|
678
678
|
|
679
679
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -875,7 +875,7 @@ class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Assoc
|
|
875
875
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
876
876
|
def one?(*args); end
|
877
877
|
|
878
|
-
sig {
|
878
|
+
sig { override.params(block: T.proc.params(e: SpellBook).void).void }
|
879
879
|
def each(&block); end
|
880
880
|
|
881
881
|
sig { params(level: T.nilable(Integer)).returns(T::Array[SpellBook]) }
|
@@ -581,7 +581,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
|
581
581
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
582
582
|
def one?(*args); end
|
583
583
|
|
584
|
-
sig {
|
584
|
+
sig { override.params(block: T.proc.params(e: Wand).void).void }
|
585
585
|
def each(&block); end
|
586
586
|
|
587
587
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -790,7 +790,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
|
790
790
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
791
791
|
def one?(*args); end
|
792
792
|
|
793
|
-
sig {
|
793
|
+
sig { override.params(block: T.proc.params(e: Wand).void).void }
|
794
794
|
def each(&block); end
|
795
795
|
|
796
796
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -998,7 +998,7 @@ class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associatio
|
|
998
998
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
999
999
|
def one?(*args); end
|
1000
1000
|
|
1001
|
-
sig {
|
1001
|
+
sig { override.params(block: T.proc.params(e: Wand).void).void }
|
1002
1002
|
def each(&block); end
|
1003
1003
|
|
1004
1004
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wand]) }
|
@@ -817,7 +817,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
817
817
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
818
818
|
def one?(*args); end
|
819
819
|
|
820
|
-
sig {
|
820
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
821
821
|
def each(&block); end
|
822
822
|
|
823
823
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -1113,7 +1113,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
1113
1113
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1114
1114
|
def one?(*args); end
|
1115
1115
|
|
1116
|
-
sig {
|
1116
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
1117
1117
|
def each(&block); end
|
1118
1118
|
|
1119
1119
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|
@@ -1408,7 +1408,7 @@ class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associat
|
|
1408
1408
|
sig { params(args: T.untyped).returns(T::Boolean) }
|
1409
1409
|
def one?(*args); end
|
1410
1410
|
|
1411
|
-
sig {
|
1411
|
+
sig { override.params(block: T.proc.params(e: Wizard).void).void }
|
1412
1412
|
def each(&block); end
|
1413
1413
|
|
1414
1414
|
sig { params(level: T.nilable(Integer)).returns(T::Array[Wizard]) }
|