sorbet-rails 0.7.5 → 0.7.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +1 -1
  3. data/.github/workflows/publish-gem.yml +7 -1
  4. data/Gemfile +0 -2
  5. data/README.md +11 -1
  6. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +25 -1
  7. data/lib/sorbet-rails/model_utils.rb +14 -7
  8. data/lib/sorbet-rails/rails_mixins/custom_finder_methods.rb +4 -0
  9. data/sorbet-rails.gemspec +1 -1
  10. data/spec/generators/sorbet_test_cases.rb +9 -0
  11. data/spec/support/v5.2/Gemfile.lock +1 -1
  12. data/spec/support/v5.2/sorbet_test_cases.rb +9 -0
  13. data/spec/support/v6.0/Gemfile.lock +1 -1
  14. data/spec/support/v6.0/sorbet_test_cases.rb +9 -0
  15. data/spec/support/v6.1/sorbet_test_cases.rb +9 -0
  16. data/spec/test_data/v5.2/expected_attachment.rbi +12 -6
  17. data/spec/test_data/v5.2/expected_blob.rbi +12 -6
  18. data/spec/test_data/v5.2/expected_headmaster.rbi +12 -6
  19. data/spec/test_data/v5.2/expected_internal_metadata.rbi +12 -6
  20. data/spec/test_data/v5.2/expected_potion.rbi +12 -6
  21. data/spec/test_data/v5.2/expected_robe.rbi +12 -6
  22. data/spec/test_data/v5.2/expected_schema_migration.rbi +12 -6
  23. data/spec/test_data/v5.2/expected_school.rbi +12 -6
  24. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +12 -6
  25. data/spec/test_data/v5.2/expected_spell.rbi +12 -6
  26. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +12 -6
  27. data/spec/test_data/v5.2/expected_spell_book.rbi +12 -6
  28. data/spec/test_data/v5.2/expected_squib.rbi +12 -6
  29. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +12 -6
  30. data/spec/test_data/v5.2/expected_subject.rbi +12 -6
  31. data/spec/test_data/v5.2/expected_wand.rbi +12 -6
  32. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +12 -6
  33. data/spec/test_data/v5.2/expected_wizard.rbi +12 -6
  34. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +12 -6
  35. data/spec/test_data/v6.0/expected_attachment.rbi +12 -6
  36. data/spec/test_data/v6.0/expected_blob.rbi +12 -6
  37. data/spec/test_data/v6.0/expected_headmaster.rbi +12 -6
  38. data/spec/test_data/v6.0/expected_internal_metadata.rbi +12 -6
  39. data/spec/test_data/v6.0/expected_potion.rbi +12 -6
  40. data/spec/test_data/v6.0/expected_robe.rbi +12 -6
  41. data/spec/test_data/v6.0/expected_schema_migration.rbi +12 -6
  42. data/spec/test_data/v6.0/expected_school.rbi +12 -6
  43. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +12 -6
  44. data/spec/test_data/v6.0/expected_spell.rbi +12 -6
  45. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +12 -6
  46. data/spec/test_data/v6.0/expected_spell_book.rbi +12 -6
  47. data/spec/test_data/v6.0/expected_squib.rbi +12 -6
  48. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +12 -6
  49. data/spec/test_data/v6.0/expected_subject.rbi +12 -6
  50. data/spec/test_data/v6.0/expected_wand.rbi +12 -6
  51. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +12 -6
  52. data/spec/test_data/v6.0/expected_wizard.rbi +12 -6
  53. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +12 -6
  54. data/spec/test_data/v6.1/expected_attachment.rbi +12 -6
  55. data/spec/test_data/v6.1/expected_blob.rbi +12 -6
  56. data/spec/test_data/v6.1/expected_headmaster.rbi +12 -6
  57. data/spec/test_data/v6.1/expected_internal_metadata.rbi +12 -6
  58. data/spec/test_data/v6.1/expected_potion.rbi +12 -6
  59. data/spec/test_data/v6.1/expected_record.rbi +12 -6
  60. data/spec/test_data/v6.1/expected_robe.rbi +12 -6
  61. data/spec/test_data/v6.1/expected_schema_migration.rbi +12 -6
  62. data/spec/test_data/v6.1/expected_school.rbi +12 -6
  63. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +12 -6
  64. data/spec/test_data/v6.1/expected_spell.rbi +12 -6
  65. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +12 -6
  66. data/spec/test_data/v6.1/expected_spell_book.rbi +12 -6
  67. data/spec/test_data/v6.1/expected_squib.rbi +12 -6
  68. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +12 -6
  69. data/spec/test_data/v6.1/expected_subject.rbi +12 -6
  70. data/spec/test_data/v6.1/expected_variant_record.rbi +12 -6
  71. data/spec/test_data/v6.1/expected_wand.rbi +12 -6
  72. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +12 -6
  73. data/spec/test_data/v6.1/expected_wizard.rbi +12 -6
  74. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +12 -6
  75. metadata +2 -2
@@ -373,9 +373,6 @@ module Wand::QueryMethodsReturningRelation
373
373
  sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
374
374
  def unscoped(&block); end
375
375
 
376
- sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
377
- def select(*args); end
378
-
379
376
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
380
377
  def reselect(*args); end
381
378
 
@@ -463,6 +460,12 @@ module Wand::QueryMethodsReturningRelation
463
460
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
464
461
  def only(*args); end
465
462
 
463
+ sig { params(block: T.proc.params(e: Wand).returns(T::Boolean)).returns(T::Array[Wand]) }
464
+ def select(&block); end
465
+
466
+ sig { params(args: T.any(String, Symbol)).returns(Wand::ActiveRecord_Relation) }
467
+ def select_columns(*args); end
468
+
466
469
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
467
470
  def extending(*args, &block); end
468
471
 
@@ -486,9 +489,6 @@ module Wand::QueryMethodsReturningAssociationRelation
486
489
  sig { params(block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_Relation) }
487
490
  def unscoped(&block); end
488
491
 
489
- sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
490
- def select(*args); end
491
-
492
492
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
493
493
  def reselect(*args); end
494
494
 
@@ -576,6 +576,12 @@ module Wand::QueryMethodsReturningAssociationRelation
576
576
  sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
577
577
  def only(*args); end
578
578
 
579
+ sig { params(block: T.proc.params(e: Wand).returns(T::Boolean)).returns(T::Array[Wand]) }
580
+ def select(&block); end
581
+
582
+ sig { params(args: T.any(String, Symbol)).returns(Wand::ActiveRecord_AssociationRelation) }
583
+ def select_columns(*args); end
584
+
579
585
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wand::ActiveRecord_AssociationRelation) }
580
586
  def extending(*args, &block); end
581
587
 
@@ -97,9 +97,6 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
97
97
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
98
98
  def unscoped(&block); end
99
99
 
100
- sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
101
- def select(*args); end
102
-
103
100
  sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
104
101
  def reselect(*args); end
105
102
 
@@ -187,6 +184,12 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningRelation
187
184
  sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
188
185
  def only(*args); end
189
186
 
187
+ sig { params(block: T.proc.params(e: Wizard::HABTM_Subjects).returns(T::Boolean)).returns(T::Array[Wizard::HABTM_Subjects]) }
188
+ def select(&block); end
189
+
190
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
191
+ def select_columns(*args); end
192
+
190
193
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
191
194
  def extending(*args, &block); end
192
195
 
@@ -210,9 +213,6 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
210
213
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
211
214
  def unscoped(&block); end
212
215
 
213
- sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
214
- def select(*args); end
215
-
216
216
  sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
217
217
  def reselect(*args); end
218
218
 
@@ -300,6 +300,12 @@ module Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
300
300
  sig { params(args: T.untyped).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
301
301
  def only(*args); end
302
302
 
303
+ sig { params(block: T.proc.params(e: Wizard::HABTM_Subjects).returns(T::Boolean)).returns(T::Array[Wizard::HABTM_Subjects]) }
304
+ def select(&block); end
305
+
306
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
307
+ def select_columns(*args); end
308
+
303
309
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
304
310
  def extending(*args, &block); end
305
311
 
@@ -890,9 +890,6 @@ module Wizard::QueryMethodsReturningRelation
890
890
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
891
891
  def unscoped(&block); end
892
892
 
893
- sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
894
- def select(*args); end
895
-
896
893
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
897
894
  def reselect(*args); end
898
895
 
@@ -980,6 +977,12 @@ module Wizard::QueryMethodsReturningRelation
980
977
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
981
978
  def only(*args); end
982
979
 
980
+ sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
981
+ def select(&block); end
982
+
983
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_Relation) }
984
+ def select_columns(*args); end
985
+
983
986
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
984
987
  def extending(*args, &block); end
985
988
 
@@ -1003,9 +1006,6 @@ module Wizard::QueryMethodsReturningAssociationRelation
1003
1006
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1004
1007
  def unscoped(&block); end
1005
1008
 
1006
- sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1007
- def select(*args); end
1008
-
1009
1009
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1010
1010
  def reselect(*args); end
1011
1011
 
@@ -1093,6 +1093,12 @@ module Wizard::QueryMethodsReturningAssociationRelation
1093
1093
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1094
1094
  def only(*args); end
1095
1095
 
1096
+ sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1097
+ def select(&block); end
1098
+
1099
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_AssociationRelation) }
1100
+ def select_columns(*args); end
1101
+
1096
1102
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
1097
1103
  def extending(*args, &block); end
1098
1104
 
@@ -890,9 +890,6 @@ module Wizard::QueryMethodsReturningRelation
890
890
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
891
891
  def unscoped(&block); end
892
892
 
893
- sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
894
- def select(*args); end
895
-
896
893
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
897
894
  def reselect(*args); end
898
895
 
@@ -980,6 +977,12 @@ module Wizard::QueryMethodsReturningRelation
980
977
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
981
978
  def only(*args); end
982
979
 
980
+ sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
981
+ def select(&block); end
982
+
983
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_Relation) }
984
+ def select_columns(*args); end
985
+
983
986
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
984
987
  def extending(*args, &block); end
985
988
 
@@ -1003,9 +1006,6 @@ module Wizard::QueryMethodsReturningAssociationRelation
1003
1006
  sig { params(block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_Relation) }
1004
1007
  def unscoped(&block); end
1005
1008
 
1006
- sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1007
- def select(*args); end
1008
-
1009
1009
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1010
1010
  def reselect(*args); end
1011
1011
 
@@ -1093,6 +1093,12 @@ module Wizard::QueryMethodsReturningAssociationRelation
1093
1093
  sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
1094
1094
  def only(*args); end
1095
1095
 
1096
+ sig { params(block: T.proc.params(e: Wizard).returns(T::Boolean)).returns(T::Array[Wizard]) }
1097
+ def select(&block); end
1098
+
1099
+ sig { params(args: T.any(String, Symbol)).returns(Wizard::ActiveRecord_AssociationRelation) }
1100
+ def select_columns(*args); end
1101
+
1096
1102
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Wizard::ActiveRecord_AssociationRelation) }
1097
1103
  def extending(*args, &block); end
1098
1104
 
@@ -76,9 +76,6 @@ module ActiveStorage::Attachment::QueryMethodsReturningRelation
76
76
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
77
77
  def unscoped(&block); end
78
78
 
79
- sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
80
- def select(*args); end
81
-
82
79
  sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
83
80
  def reselect(*args); end
84
81
 
@@ -166,6 +163,12 @@ module ActiveStorage::Attachment::QueryMethodsReturningRelation
166
163
  sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
167
164
  def only(*args); end
168
165
 
166
+ sig { params(block: T.proc.params(e: ActiveStorage::Attachment).returns(T::Boolean)).returns(T::Array[ActiveStorage::Attachment]) }
167
+ def select(&block); end
168
+
169
+ sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
170
+ def select_columns(*args); end
171
+
169
172
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
170
173
  def extending(*args, &block); end
171
174
 
@@ -189,9 +192,6 @@ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
189
192
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
190
193
  def unscoped(&block); end
191
194
 
192
- sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
193
- def select(*args); end
194
-
195
195
  sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
196
196
  def reselect(*args); end
197
197
 
@@ -279,6 +279,12 @@ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
279
279
  sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
280
280
  def only(*args); end
281
281
 
282
+ sig { params(block: T.proc.params(e: ActiveStorage::Attachment).returns(T::Boolean)).returns(T::Array[ActiveStorage::Attachment]) }
283
+ def select(&block); end
284
+
285
+ sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
286
+ def select_columns(*args); end
287
+
282
288
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
283
289
  def extending(*args, &block); end
284
290
 
@@ -94,9 +94,6 @@ module ActiveStorage::Blob::QueryMethodsReturningRelation
94
94
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
95
95
  def unscoped(&block); end
96
96
 
97
- sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
98
- def select(*args); end
99
-
100
97
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
101
98
  def reselect(*args); end
102
99
 
@@ -184,6 +181,12 @@ module ActiveStorage::Blob::QueryMethodsReturningRelation
184
181
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
185
182
  def only(*args); end
186
183
 
184
+ sig { params(block: T.proc.params(e: ActiveStorage::Blob).returns(T::Boolean)).returns(T::Array[ActiveStorage::Blob]) }
185
+ def select(&block); end
186
+
187
+ sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
188
+ def select_columns(*args); end
189
+
187
190
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
188
191
  def extending(*args, &block); end
189
192
 
@@ -207,9 +210,6 @@ module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
207
210
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
208
211
  def unscoped(&block); end
209
212
 
210
- sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
211
- def select(*args); end
212
-
213
213
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
214
214
  def reselect(*args); end
215
215
 
@@ -297,6 +297,12 @@ module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
297
297
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
298
298
  def only(*args); end
299
299
 
300
+ sig { params(block: T.proc.params(e: ActiveStorage::Blob).returns(T::Boolean)).returns(T::Array[ActiveStorage::Blob]) }
301
+ def select(&block); end
302
+
303
+ sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
304
+ def select_columns(*args); end
305
+
300
306
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
301
307
  def extending(*args, &block); end
302
308
 
@@ -106,9 +106,6 @@ module Headmaster::QueryMethodsReturningRelation
106
106
  sig { params(block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
107
107
  def unscoped(&block); end
108
108
 
109
- sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
110
- def select(*args); end
111
-
112
109
  sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
113
110
  def reselect(*args); end
114
111
 
@@ -196,6 +193,12 @@ module Headmaster::QueryMethodsReturningRelation
196
193
  sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_Relation) }
197
194
  def only(*args); end
198
195
 
196
+ sig { params(block: T.proc.params(e: Headmaster).returns(T::Boolean)).returns(T::Array[Headmaster]) }
197
+ def select(&block); end
198
+
199
+ sig { params(args: T.any(String, Symbol)).returns(Headmaster::ActiveRecord_Relation) }
200
+ def select_columns(*args); end
201
+
199
202
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
200
203
  def extending(*args, &block); end
201
204
 
@@ -219,9 +222,6 @@ module Headmaster::QueryMethodsReturningAssociationRelation
219
222
  sig { params(block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
220
223
  def unscoped(&block); end
221
224
 
222
- sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
223
- def select(*args); end
224
-
225
225
  sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
226
226
  def reselect(*args); end
227
227
 
@@ -309,6 +309,12 @@ module Headmaster::QueryMethodsReturningAssociationRelation
309
309
  sig { params(args: T.untyped).returns(Headmaster::ActiveRecord_AssociationRelation) }
310
310
  def only(*args); end
311
311
 
312
+ sig { params(block: T.proc.params(e: Headmaster).returns(T::Boolean)).returns(T::Array[Headmaster]) }
313
+ def select(&block); end
314
+
315
+ sig { params(args: T.any(String, Symbol)).returns(Headmaster::ActiveRecord_AssociationRelation) }
316
+ def select_columns(*args); end
317
+
312
318
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_AssociationRelation) }
313
319
  def extending(*args, &block); end
314
320
 
@@ -76,9 +76,6 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
76
76
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
77
77
  def unscoped(&block); end
78
78
 
79
- sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
80
- def select(*args); end
81
-
82
79
  sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
83
80
  def reselect(*args); end
84
81
 
@@ -166,6 +163,12 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
166
163
  sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
167
164
  def only(*args); end
168
165
 
166
+ sig { params(block: T.proc.params(e: ActiveRecord::InternalMetadata).returns(T::Boolean)).returns(T::Array[ActiveRecord::InternalMetadata]) }
167
+ def select(&block); end
168
+
169
+ sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
170
+ def select_columns(*args); end
171
+
169
172
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
170
173
  def extending(*args, &block); end
171
174
 
@@ -189,9 +192,6 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
189
192
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
190
193
  def unscoped(&block); end
191
194
 
192
- sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
193
- def select(*args); end
194
-
195
195
  sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
196
196
  def reselect(*args); end
197
197
 
@@ -279,6 +279,12 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
279
279
  sig { params(args: T.untyped).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
280
280
  def only(*args); end
281
281
 
282
+ sig { params(block: T.proc.params(e: ActiveRecord::InternalMetadata).returns(T::Boolean)).returns(T::Array[ActiveRecord::InternalMetadata]) }
283
+ def select(&block); end
284
+
285
+ sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
286
+ def select_columns(*args); end
287
+
282
288
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
283
289
  def extending(*args, &block); end
284
290
 
@@ -58,9 +58,6 @@ module Potion::QueryMethodsReturningRelation
58
58
  sig { params(block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_Relation) }
59
59
  def unscoped(&block); end
60
60
 
61
- sig { params(args: T.untyped).returns(Potion::ActiveRecord_Relation) }
62
- def select(*args); end
63
-
64
61
  sig { params(args: T.untyped).returns(Potion::ActiveRecord_Relation) }
65
62
  def reselect(*args); end
66
63
 
@@ -148,6 +145,12 @@ module Potion::QueryMethodsReturningRelation
148
145
  sig { params(args: T.untyped).returns(Potion::ActiveRecord_Relation) }
149
146
  def only(*args); end
150
147
 
148
+ sig { params(block: T.proc.params(e: Potion).returns(T::Boolean)).returns(T::Array[Potion]) }
149
+ def select(&block); end
150
+
151
+ sig { params(args: T.any(String, Symbol)).returns(Potion::ActiveRecord_Relation) }
152
+ def select_columns(*args); end
153
+
151
154
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_Relation) }
152
155
  def extending(*args, &block); end
153
156
 
@@ -171,9 +174,6 @@ module Potion::QueryMethodsReturningAssociationRelation
171
174
  sig { params(block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_Relation) }
172
175
  def unscoped(&block); end
173
176
 
174
- sig { params(args: T.untyped).returns(Potion::ActiveRecord_AssociationRelation) }
175
- def select(*args); end
176
-
177
177
  sig { params(args: T.untyped).returns(Potion::ActiveRecord_AssociationRelation) }
178
178
  def reselect(*args); end
179
179
 
@@ -261,6 +261,12 @@ module Potion::QueryMethodsReturningAssociationRelation
261
261
  sig { params(args: T.untyped).returns(Potion::ActiveRecord_AssociationRelation) }
262
262
  def only(*args); end
263
263
 
264
+ sig { params(block: T.proc.params(e: Potion).returns(T::Boolean)).returns(T::Array[Potion]) }
265
+ def select(&block); end
266
+
267
+ sig { params(args: T.any(String, Symbol)).returns(Potion::ActiveRecord_AssociationRelation) }
268
+ def select_columns(*args); end
269
+
264
270
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_AssociationRelation) }
265
271
  def extending(*args, &block); end
266
272
 
@@ -37,9 +37,6 @@ module ActiveStorage::Record::QueryMethodsReturningRelation
37
37
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Record::ActiveRecord_Relation) }
38
38
  def unscoped(&block); end
39
39
 
40
- sig { params(args: T.untyped).returns(ActiveStorage::Record::ActiveRecord_Relation) }
41
- def select(*args); end
42
-
43
40
  sig { params(args: T.untyped).returns(ActiveStorage::Record::ActiveRecord_Relation) }
44
41
  def reselect(*args); end
45
42
 
@@ -127,6 +124,12 @@ module ActiveStorage::Record::QueryMethodsReturningRelation
127
124
  sig { params(args: T.untyped).returns(ActiveStorage::Record::ActiveRecord_Relation) }
128
125
  def only(*args); end
129
126
 
127
+ sig { params(block: T.proc.params(e: ActiveStorage::Record).returns(T::Boolean)).returns(T::Array[ActiveStorage::Record]) }
128
+ def select(&block); end
129
+
130
+ sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Record::ActiveRecord_Relation) }
131
+ def select_columns(*args); end
132
+
130
133
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Record::ActiveRecord_Relation) }
131
134
  def extending(*args, &block); end
132
135
 
@@ -150,9 +153,6 @@ module ActiveStorage::Record::QueryMethodsReturningAssociationRelation
150
153
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Record::ActiveRecord_Relation) }
151
154
  def unscoped(&block); end
152
155
 
153
- sig { params(args: T.untyped).returns(ActiveStorage::Record::ActiveRecord_AssociationRelation) }
154
- def select(*args); end
155
-
156
156
  sig { params(args: T.untyped).returns(ActiveStorage::Record::ActiveRecord_AssociationRelation) }
157
157
  def reselect(*args); end
158
158
 
@@ -240,6 +240,12 @@ module ActiveStorage::Record::QueryMethodsReturningAssociationRelation
240
240
  sig { params(args: T.untyped).returns(ActiveStorage::Record::ActiveRecord_AssociationRelation) }
241
241
  def only(*args); end
242
242
 
243
+ sig { params(block: T.proc.params(e: ActiveStorage::Record).returns(T::Boolean)).returns(T::Array[ActiveStorage::Record]) }
244
+ def select(&block); end
245
+
246
+ sig { params(args: T.any(String, Symbol)).returns(ActiveStorage::Record::ActiveRecord_AssociationRelation) }
247
+ def select_columns(*args); end
248
+
243
249
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Record::ActiveRecord_AssociationRelation) }
244
250
  def extending(*args, &block); end
245
251
 
@@ -79,9 +79,6 @@ module Robe::QueryMethodsReturningRelation
79
79
  sig { params(block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_Relation) }
80
80
  def unscoped(&block); end
81
81
 
82
- sig { params(args: T.untyped).returns(Robe::ActiveRecord_Relation) }
83
- def select(*args); end
84
-
85
82
  sig { params(args: T.untyped).returns(Robe::ActiveRecord_Relation) }
86
83
  def reselect(*args); end
87
84
 
@@ -169,6 +166,12 @@ module Robe::QueryMethodsReturningRelation
169
166
  sig { params(args: T.untyped).returns(Robe::ActiveRecord_Relation) }
170
167
  def only(*args); end
171
168
 
169
+ sig { params(block: T.proc.params(e: Robe).returns(T::Boolean)).returns(T::Array[Robe]) }
170
+ def select(&block); end
171
+
172
+ sig { params(args: T.any(String, Symbol)).returns(Robe::ActiveRecord_Relation) }
173
+ def select_columns(*args); end
174
+
172
175
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_Relation) }
173
176
  def extending(*args, &block); end
174
177
 
@@ -192,9 +195,6 @@ module Robe::QueryMethodsReturningAssociationRelation
192
195
  sig { params(block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_Relation) }
193
196
  def unscoped(&block); end
194
197
 
195
- sig { params(args: T.untyped).returns(Robe::ActiveRecord_AssociationRelation) }
196
- def select(*args); end
197
-
198
198
  sig { params(args: T.untyped).returns(Robe::ActiveRecord_AssociationRelation) }
199
199
  def reselect(*args); end
200
200
 
@@ -282,6 +282,12 @@ module Robe::QueryMethodsReturningAssociationRelation
282
282
  sig { params(args: T.untyped).returns(Robe::ActiveRecord_AssociationRelation) }
283
283
  def only(*args); end
284
284
 
285
+ sig { params(block: T.proc.params(e: Robe).returns(T::Boolean)).returns(T::Array[Robe]) }
286
+ def select(&block); end
287
+
288
+ sig { params(args: T.any(String, Symbol)).returns(Robe::ActiveRecord_AssociationRelation) }
289
+ def select_columns(*args); end
290
+
285
291
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_AssociationRelation) }
286
292
  def extending(*args, &block); end
287
293
 
@@ -49,9 +49,6 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
49
49
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
50
50
  def unscoped(&block); end
51
51
 
52
- sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
53
- def select(*args); end
54
-
55
52
  sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
56
53
  def reselect(*args); end
57
54
 
@@ -139,6 +136,12 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
139
136
  sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
140
137
  def only(*args); end
141
138
 
139
+ sig { params(block: T.proc.params(e: ActiveRecord::SchemaMigration).returns(T::Boolean)).returns(T::Array[ActiveRecord::SchemaMigration]) }
140
+ def select(&block); end
141
+
142
+ sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
143
+ def select_columns(*args); end
144
+
142
145
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
143
146
  def extending(*args, &block); end
144
147
 
@@ -162,9 +165,6 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
162
165
  sig { params(block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
163
166
  def unscoped(&block); end
164
167
 
165
- sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
166
- def select(*args); end
167
-
168
168
  sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
169
169
  def reselect(*args); end
170
170
 
@@ -252,6 +252,12 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
252
252
  sig { params(args: T.untyped).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
253
253
  def only(*args); end
254
254
 
255
+ sig { params(block: T.proc.params(e: ActiveRecord::SchemaMigration).returns(T::Boolean)).returns(T::Array[ActiveRecord::SchemaMigration]) }
256
+ def select(&block); end
257
+
258
+ sig { params(args: T.any(String, Symbol)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
259
+ def select_columns(*args); end
260
+
255
261
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
256
262
  def extending(*args, &block); end
257
263
 
@@ -79,9 +79,6 @@ module School::QueryMethodsReturningRelation
79
79
  sig { params(block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
80
80
  def unscoped(&block); end
81
81
 
82
- sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
83
- def select(*args); end
84
-
85
82
  sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
86
83
  def reselect(*args); end
87
84
 
@@ -169,6 +166,12 @@ module School::QueryMethodsReturningRelation
169
166
  sig { params(args: T.untyped).returns(School::ActiveRecord_Relation) }
170
167
  def only(*args); end
171
168
 
169
+ sig { params(block: T.proc.params(e: School).returns(T::Boolean)).returns(T::Array[School]) }
170
+ def select(&block); end
171
+
172
+ sig { params(args: T.any(String, Symbol)).returns(School::ActiveRecord_Relation) }
173
+ def select_columns(*args); end
174
+
172
175
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
173
176
  def extending(*args, &block); end
174
177
 
@@ -192,9 +195,6 @@ module School::QueryMethodsReturningAssociationRelation
192
195
  sig { params(block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
193
196
  def unscoped(&block); end
194
197
 
195
- sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
196
- def select(*args); end
197
-
198
198
  sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
199
199
  def reselect(*args); end
200
200
 
@@ -282,6 +282,12 @@ module School::QueryMethodsReturningAssociationRelation
282
282
  sig { params(args: T.untyped).returns(School::ActiveRecord_AssociationRelation) }
283
283
  def only(*args); end
284
284
 
285
+ sig { params(block: T.proc.params(e: School).returns(T::Boolean)).returns(T::Array[School]) }
286
+ def select(&block); end
287
+
288
+ sig { params(args: T.any(String, Symbol)).returns(School::ActiveRecord_AssociationRelation) }
289
+ def select_columns(*args); end
290
+
285
291
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_AssociationRelation) }
286
292
  def extending(*args, &block); end
287
293
 
@@ -97,9 +97,6 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
97
97
  sig { params(block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
98
98
  def unscoped(&block); end
99
99
 
100
- sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
101
- def select(*args); end
102
-
103
100
  sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
104
101
  def reselect(*args); end
105
102
 
@@ -187,6 +184,12 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
187
184
  sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
188
185
  def only(*args); end
189
186
 
187
+ sig { params(block: T.proc.params(e: Spell::HABTM_SpellBooks).returns(T::Boolean)).returns(T::Array[Spell::HABTM_SpellBooks]) }
188
+ def select(&block); end
189
+
190
+ sig { params(args: T.any(String, Symbol)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
191
+ def select_columns(*args); end
192
+
190
193
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
191
194
  def extending(*args, &block); end
192
195
 
@@ -210,9 +213,6 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
210
213
  sig { params(block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
211
214
  def unscoped(&block); end
212
215
 
213
- sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
214
- def select(*args); end
215
-
216
216
  sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
217
217
  def reselect(*args); end
218
218
 
@@ -300,6 +300,12 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
300
300
  sig { params(args: T.untyped).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
301
301
  def only(*args); end
302
302
 
303
+ sig { params(block: T.proc.params(e: Spell::HABTM_SpellBooks).returns(T::Boolean)).returns(T::Array[Spell::HABTM_SpellBooks]) }
304
+ def select(&block); end
305
+
306
+ sig { params(args: T.any(String, Symbol)).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
307
+ def select_columns(*args); end
308
+
303
309
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
304
310
  def extending(*args, &block); end
305
311