sorbet-rails 0.7.27 → 0.7.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci-master.yml +2 -0
  3. data/.github/workflows/publish-gem.yml +9 -19
  4. data/README.md +14 -2
  5. data/lib/sorbet-rails/active_record_rbi_formatter.rb +3 -3
  6. data/lib/sorbet-rails/gem_plugins/aasm_plugin.rb +7 -2
  7. data/lib/sorbet-rails/model_column_utils.rb +1 -1
  8. data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +1 -1
  9. data/lib/sorbet-rails/model_plugins/active_record_querying.rb +13 -0
  10. data/lib/sorbet-rails/model_rbi_formatter.rb +3 -3
  11. data/lib/sorbet-rails/rails_mixins/custom_finder_methods.rb +8 -0
  12. data/sorbet-rails.gemspec +2 -2
  13. data/spec/custom_finder_methods_spec.rb +23 -0
  14. data/spec/sorbet_spec.rb +3 -0
  15. data/spec/support/v5.2/Gemfile.lock +76 -67
  16. data/spec/support/v6.0/Gemfile.lock +93 -85
  17. data/spec/support/v6.1/Gemfile +1 -1
  18. data/spec/support/v6.1/Gemfile.lock +115 -108
  19. data/spec/support/v6.1/sorbet_test_cases.rb +3 -0
  20. data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
  21. data/spec/test_data/v5.2/expected_attachment.rbi +3 -3
  22. data/spec/test_data/v5.2/expected_blob.rbi +3 -3
  23. data/spec/test_data/v5.2/expected_habtm_subjects.rbi +3 -3
  24. data/spec/test_data/v5.2/expected_habtm_wizards.rbi +3 -3
  25. data/spec/test_data/v5.2/expected_headmaster.rbi +3 -3
  26. data/spec/test_data/v5.2/expected_internal_metadata.rbi +3 -3
  27. data/spec/test_data/v5.2/expected_potion.rbi +3 -3
  28. data/spec/test_data/v5.2/expected_robe.rbi +3 -3
  29. data/spec/test_data/v5.2/expected_schema_migration.rbi +3 -3
  30. data/spec/test_data/v5.2/expected_school.rbi +3 -3
  31. data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +3 -3
  32. data/spec/test_data/v5.2/expected_spell.rbi +3 -3
  33. data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +3 -3
  34. data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +3 -3
  35. data/spec/test_data/v5.2/expected_spell_book.rbi +3 -3
  36. data/spec/test_data/v5.2/expected_squib.rbi +3 -3
  37. data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +3 -3
  38. data/spec/test_data/v5.2/expected_subject.rbi +3 -3
  39. data/spec/test_data/v5.2/expected_wand.rbi +3 -3
  40. data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +3 -3
  41. data/spec/test_data/v5.2/expected_wizard.rbi +3 -3
  42. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +6 -6
  43. data/spec/test_data/v6.0/expected_active_record_relation.rbi +2 -2
  44. data/spec/test_data/v6.0/expected_attachment.rbi +3 -3
  45. data/spec/test_data/v6.0/expected_blob.rbi +3 -3
  46. data/spec/test_data/v6.0/expected_habtm_subjects.rbi +3 -3
  47. data/spec/test_data/v6.0/expected_habtm_wizards.rbi +3 -3
  48. data/spec/test_data/v6.0/expected_headmaster.rbi +3 -3
  49. data/spec/test_data/v6.0/expected_internal_metadata.rbi +3 -3
  50. data/spec/test_data/v6.0/expected_potion.rbi +3 -3
  51. data/spec/test_data/v6.0/expected_robe.rbi +3 -3
  52. data/spec/test_data/v6.0/expected_schema_migration.rbi +3 -3
  53. data/spec/test_data/v6.0/expected_school.rbi +3 -3
  54. data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +3 -3
  55. data/spec/test_data/v6.0/expected_spell.rbi +3 -3
  56. data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +3 -3
  57. data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +3 -3
  58. data/spec/test_data/v6.0/expected_spell_book.rbi +3 -3
  59. data/spec/test_data/v6.0/expected_squib.rbi +3 -3
  60. data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +3 -3
  61. data/spec/test_data/v6.0/expected_subject.rbi +3 -3
  62. data/spec/test_data/v6.0/expected_wand.rbi +3 -3
  63. data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +3 -3
  64. data/spec/test_data/v6.0/expected_wizard.rbi +3 -3
  65. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +6 -6
  66. data/spec/test_data/v6.1/expected_active_record_relation.rbi +2 -2
  67. data/spec/test_data/v6.1/expected_attachment.rbi +9 -3
  68. data/spec/test_data/v6.1/expected_blob.rbi +9 -3
  69. data/spec/test_data/v6.1/expected_habtm_subjects.rbi +3 -3
  70. data/spec/test_data/v6.1/expected_habtm_wizards.rbi +3 -3
  71. data/spec/test_data/v6.1/expected_headmaster.rbi +9 -3
  72. data/spec/test_data/v6.1/expected_internal_metadata.rbi +9 -3
  73. data/spec/test_data/v6.1/expected_potion.rbi +9 -3
  74. data/spec/test_data/v6.1/expected_record.rbi +9 -3
  75. data/spec/test_data/v6.1/expected_robe.rbi +9 -3
  76. data/spec/test_data/v6.1/expected_schema_migration.rbi +9 -3
  77. data/spec/test_data/v6.1/expected_school.rbi +9 -3
  78. data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +9 -3
  79. data/spec/test_data/v6.1/expected_spell.rbi +9 -3
  80. data/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi +3 -3
  81. data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +9 -3
  82. data/spec/test_data/v6.1/expected_spell_book.rbi +9 -3
  83. data/spec/test_data/v6.1/expected_squib.rbi +9 -3
  84. data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +9 -3
  85. data/spec/test_data/v6.1/expected_subject.rbi +9 -3
  86. data/spec/test_data/v6.1/expected_variant_record.rbi +9 -3
  87. data/spec/test_data/v6.1/expected_wand.rbi +9 -3
  88. data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +9 -3
  89. data/spec/test_data/v6.1/expected_wizard.rbi +9 -3
  90. data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +12 -6
  91. metadata +3 -3
@@ -41,7 +41,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
41
41
  include ActiveStorage::Blob::ActiveRelation_WhereNot
42
42
  include ActiveStorage::Blob::CustomFinderMethods
43
43
  include ActiveStorage::Blob::QueryMethodsReturningRelation
44
- Elem = type_member(fixed: ActiveStorage::Blob)
44
+ Elem = type_member {{fixed: ActiveStorage::Blob}}
45
45
 
46
46
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
47
47
  def unattached(*args); end
@@ -54,7 +54,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso
54
54
  include ActiveStorage::Blob::ActiveRelation_WhereNot
55
55
  include ActiveStorage::Blob::CustomFinderMethods
56
56
  include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
57
- Elem = type_member(fixed: ActiveStorage::Blob)
57
+ Elem = type_member {{fixed: ActiveStorage::Blob}}
58
58
 
59
59
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
60
60
  def unattached(*args); end
@@ -66,7 +66,7 @@ end
66
66
  class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
67
67
  include ActiveStorage::Blob::CustomFinderMethods
68
68
  include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
69
- Elem = type_member(fixed: ActiveStorage::Blob)
69
+ Elem = type_member {{fixed: ActiveStorage::Blob}}
70
70
 
71
71
  sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
72
72
  def unattached(*args); end
@@ -187,6 +187,9 @@ module ActiveStorage::Blob::QueryMethodsReturningRelation
187
187
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
188
188
  def select_columns(*args); end
189
189
 
190
+ sig { params(args: Symbol).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
191
+ def where_missing(*args); end
192
+
190
193
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
191
194
  def extending(*args, &block); end
192
195
 
@@ -303,6 +306,9 @@ module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
303
306
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
304
307
  def select_columns(*args); end
305
308
 
309
+ sig { params(args: Symbol).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
310
+ def where_missing(*args); end
311
+
306
312
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
307
313
  def extending(*args, &block); end
308
314
 
@@ -194,7 +194,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
194
194
  include Enumerable
195
195
  extend T::Sig
196
196
  extend T::Generic
197
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
197
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
198
198
 
199
199
  sig { returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
200
200
  def all; end
@@ -320,7 +320,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::A
320
320
  include Enumerable
321
321
  extend T::Sig
322
322
  extend T::Generic
323
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
323
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
324
324
 
325
325
  sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
326
326
  def all; end
@@ -516,7 +516,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < Active
516
516
  include Enumerable
517
517
  extend T::Sig
518
518
  extend T::Generic
519
- Elem = type_member(fixed: Wizard::HABTM_Subjects)
519
+ Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
520
520
 
521
521
  sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
522
522
  def all; end
@@ -194,7 +194,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
194
194
  include Enumerable
195
195
  extend T::Sig
196
196
  extend T::Generic
197
- Elem = type_member(fixed: Subject::HABTM_Wizards)
197
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
198
198
 
199
199
  sig { returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
200
200
  def all; end
@@ -320,7 +320,7 @@ class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::A
320
320
  include Enumerable
321
321
  extend T::Sig
322
322
  extend T::Generic
323
- Elem = type_member(fixed: Subject::HABTM_Wizards)
323
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
324
324
 
325
325
  sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
326
326
  def all; end
@@ -516,7 +516,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < Active
516
516
  include Enumerable
517
517
  extend T::Sig
518
518
  extend T::Generic
519
- Elem = type_member(fixed: Subject::HABTM_Wizards)
519
+ Elem = type_member {{fixed: Subject::HABTM_Wizards}}
520
520
 
521
521
  sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
522
522
  def all; end
@@ -199,6 +199,9 @@ module Headmaster::QueryMethodsReturningRelation
199
199
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_Relation) }
200
200
  def select_columns(*args); end
201
201
 
202
+ sig { params(args: Symbol).returns(Headmaster::ActiveRecord_Relation) }
203
+ def where_missing(*args); end
204
+
202
205
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_Relation) }
203
206
  def extending(*args, &block); end
204
207
 
@@ -315,6 +318,9 @@ module Headmaster::QueryMethodsReturningAssociationRelation
315
318
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Headmaster::ActiveRecord_AssociationRelation) }
316
319
  def select_columns(*args); end
317
320
 
321
+ sig { params(args: Symbol).returns(Headmaster::ActiveRecord_AssociationRelation) }
322
+ def where_missing(*args); end
323
+
318
324
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Headmaster::ActiveRecord_AssociationRelation) }
319
325
  def extending(*args, &block); end
320
326
 
@@ -335,20 +341,20 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation
335
341
  include Headmaster::ActiveRelation_WhereNot
336
342
  include Headmaster::CustomFinderMethods
337
343
  include Headmaster::QueryMethodsReturningRelation
338
- Elem = type_member(fixed: Headmaster)
344
+ Elem = type_member {{fixed: Headmaster}}
339
345
  end
340
346
 
341
347
  class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
342
348
  include Headmaster::ActiveRelation_WhereNot
343
349
  include Headmaster::CustomFinderMethods
344
350
  include Headmaster::QueryMethodsReturningAssociationRelation
345
- Elem = type_member(fixed: Headmaster)
351
+ Elem = type_member {{fixed: Headmaster}}
346
352
  end
347
353
 
348
354
  class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
349
355
  include Headmaster::CustomFinderMethods
350
356
  include Headmaster::QueryMethodsReturningAssociationRelation
351
- Elem = type_member(fixed: Headmaster)
357
+ Elem = type_member {{fixed: Headmaster}}
352
358
 
353
359
  sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) }
354
360
  def <<(*records); end
@@ -169,6 +169,9 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
169
169
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
170
170
  def select_columns(*args); end
171
171
 
172
+ sig { params(args: Symbol).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
173
+ def where_missing(*args); end
174
+
172
175
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_Relation) }
173
176
  def extending(*args, &block); end
174
177
 
@@ -285,6 +288,9 @@ module ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
285
288
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
286
289
  def select_columns(*args); end
287
290
 
291
+ sig { params(args: Symbol).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
292
+ def where_missing(*args); end
293
+
288
294
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation) }
289
295
  def extending(*args, &block); end
290
296
 
@@ -305,20 +311,20 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela
305
311
  include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
306
312
  include ActiveRecord::InternalMetadata::CustomFinderMethods
307
313
  include ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
308
- Elem = type_member(fixed: ActiveRecord::InternalMetadata)
314
+ Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
309
315
  end
310
316
 
311
317
  class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
312
318
  include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
313
319
  include ActiveRecord::InternalMetadata::CustomFinderMethods
314
320
  include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: ActiveRecord::InternalMetadata)
321
+ Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
316
322
  end
317
323
 
318
324
  class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
319
325
  include ActiveRecord::InternalMetadata::CustomFinderMethods
320
326
  include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
321
- Elem = type_member(fixed: ActiveRecord::InternalMetadata)
327
+ Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
322
328
 
323
329
  sig { params(records: T.any(ActiveRecord::InternalMetadata, T::Array[ActiveRecord::InternalMetadata])).returns(T.self_type) }
324
330
  def <<(*records); end
@@ -151,6 +151,9 @@ module Potion::QueryMethodsReturningRelation
151
151
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Potion::ActiveRecord_Relation) }
152
152
  def select_columns(*args); end
153
153
 
154
+ sig { params(args: Symbol).returns(Potion::ActiveRecord_Relation) }
155
+ def where_missing(*args); end
156
+
154
157
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_Relation) }
155
158
  def extending(*args, &block); end
156
159
 
@@ -267,6 +270,9 @@ module Potion::QueryMethodsReturningAssociationRelation
267
270
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Potion::ActiveRecord_AssociationRelation) }
268
271
  def select_columns(*args); end
269
272
 
273
+ sig { params(args: Symbol).returns(Potion::ActiveRecord_AssociationRelation) }
274
+ def where_missing(*args); end
275
+
270
276
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Potion::ActiveRecord_AssociationRelation) }
271
277
  def extending(*args, &block); end
272
278
 
@@ -287,20 +293,20 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
287
293
  include Potion::ActiveRelation_WhereNot
288
294
  include Potion::CustomFinderMethods
289
295
  include Potion::QueryMethodsReturningRelation
290
- Elem = type_member(fixed: Potion)
296
+ Elem = type_member {{fixed: Potion}}
291
297
  end
292
298
 
293
299
  class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
294
300
  include Potion::ActiveRelation_WhereNot
295
301
  include Potion::CustomFinderMethods
296
302
  include Potion::QueryMethodsReturningAssociationRelation
297
- Elem = type_member(fixed: Potion)
303
+ Elem = type_member {{fixed: Potion}}
298
304
  end
299
305
 
300
306
  class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
301
307
  include Potion::CustomFinderMethods
302
308
  include Potion::QueryMethodsReturningAssociationRelation
303
- Elem = type_member(fixed: Potion)
309
+ Elem = type_member {{fixed: Potion}}
304
310
 
305
311
  sig { params(records: T.any(Potion, T::Array[Potion])).returns(T.self_type) }
306
312
  def <<(*records); end
@@ -130,6 +130,9 @@ module ActiveStorage::Record::QueryMethodsReturningRelation
130
130
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Record::ActiveRecord_Relation) }
131
131
  def select_columns(*args); end
132
132
 
133
+ sig { params(args: Symbol).returns(ActiveStorage::Record::ActiveRecord_Relation) }
134
+ def where_missing(*args); end
135
+
133
136
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Record::ActiveRecord_Relation) }
134
137
  def extending(*args, &block); end
135
138
 
@@ -246,6 +249,9 @@ module ActiveStorage::Record::QueryMethodsReturningAssociationRelation
246
249
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Record::ActiveRecord_AssociationRelation) }
247
250
  def select_columns(*args); end
248
251
 
252
+ sig { params(args: Symbol).returns(ActiveStorage::Record::ActiveRecord_AssociationRelation) }
253
+ def where_missing(*args); end
254
+
249
255
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Record::ActiveRecord_AssociationRelation) }
250
256
  def extending(*args, &block); end
251
257
 
@@ -266,20 +272,20 @@ class ActiveStorage::Record::ActiveRecord_Relation < ActiveRecord::Relation
266
272
  include ActiveStorage::Record::ActiveRelation_WhereNot
267
273
  include ActiveStorage::Record::CustomFinderMethods
268
274
  include ActiveStorage::Record::QueryMethodsReturningRelation
269
- Elem = type_member(fixed: ActiveStorage::Record)
275
+ Elem = type_member {{fixed: ActiveStorage::Record}}
270
276
  end
271
277
 
272
278
  class ActiveStorage::Record::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
273
279
  include ActiveStorage::Record::ActiveRelation_WhereNot
274
280
  include ActiveStorage::Record::CustomFinderMethods
275
281
  include ActiveStorage::Record::QueryMethodsReturningAssociationRelation
276
- Elem = type_member(fixed: ActiveStorage::Record)
282
+ Elem = type_member {{fixed: ActiveStorage::Record}}
277
283
  end
278
284
 
279
285
  class ActiveStorage::Record::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
280
286
  include ActiveStorage::Record::CustomFinderMethods
281
287
  include ActiveStorage::Record::QueryMethodsReturningAssociationRelation
282
- Elem = type_member(fixed: ActiveStorage::Record)
288
+ Elem = type_member {{fixed: ActiveStorage::Record}}
283
289
 
284
290
  sig { params(records: T.any(ActiveStorage::Record, T::Array[ActiveStorage::Record])).returns(T.self_type) }
285
291
  def <<(*records); end
@@ -172,6 +172,9 @@ module Robe::QueryMethodsReturningRelation
172
172
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Robe::ActiveRecord_Relation) }
173
173
  def select_columns(*args); end
174
174
 
175
+ sig { params(args: Symbol).returns(Robe::ActiveRecord_Relation) }
176
+ def where_missing(*args); end
177
+
175
178
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_Relation) }
176
179
  def extending(*args, &block); end
177
180
 
@@ -288,6 +291,9 @@ module Robe::QueryMethodsReturningAssociationRelation
288
291
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Robe::ActiveRecord_AssociationRelation) }
289
292
  def select_columns(*args); end
290
293
 
294
+ sig { params(args: Symbol).returns(Robe::ActiveRecord_AssociationRelation) }
295
+ def where_missing(*args); end
296
+
291
297
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Robe::ActiveRecord_AssociationRelation) }
292
298
  def extending(*args, &block); end
293
299
 
@@ -308,20 +314,20 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation
308
314
  include Robe::ActiveRelation_WhereNot
309
315
  include Robe::CustomFinderMethods
310
316
  include Robe::QueryMethodsReturningRelation
311
- Elem = type_member(fixed: Robe)
317
+ Elem = type_member {{fixed: Robe}}
312
318
  end
313
319
 
314
320
  class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
315
321
  include Robe::ActiveRelation_WhereNot
316
322
  include Robe::CustomFinderMethods
317
323
  include Robe::QueryMethodsReturningAssociationRelation
318
- Elem = type_member(fixed: Robe)
324
+ Elem = type_member {{fixed: Robe}}
319
325
  end
320
326
 
321
327
  class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
322
328
  include Robe::CustomFinderMethods
323
329
  include Robe::QueryMethodsReturningAssociationRelation
324
- Elem = type_member(fixed: Robe)
330
+ Elem = type_member {{fixed: Robe}}
325
331
 
326
332
  sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) }
327
333
  def <<(*records); end
@@ -142,6 +142,9 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
142
142
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
143
143
  def select_columns(*args); end
144
144
 
145
+ sig { params(args: Symbol).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
146
+ def where_missing(*args); end
147
+
145
148
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_Relation) }
146
149
  def extending(*args, &block); end
147
150
 
@@ -258,6 +261,9 @@ module ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
258
261
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
259
262
  def select_columns(*args); end
260
263
 
264
+ sig { params(args: Symbol).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
265
+ def where_missing(*args); end
266
+
261
267
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation) }
262
268
  def extending(*args, &block); end
263
269
 
@@ -278,20 +284,20 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
278
284
  include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
279
285
  include ActiveRecord::SchemaMigration::CustomFinderMethods
280
286
  include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
281
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
287
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
282
288
  end
283
289
 
284
290
  class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
285
291
  include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
286
292
  include ActiveRecord::SchemaMigration::CustomFinderMethods
287
293
  include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
288
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
294
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
289
295
  end
290
296
 
291
297
  class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
292
298
  include ActiveRecord::SchemaMigration::CustomFinderMethods
293
299
  include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
294
- Elem = type_member(fixed: ActiveRecord::SchemaMigration)
300
+ Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
295
301
 
296
302
  sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
297
303
  def <<(*records); end
@@ -172,6 +172,9 @@ module School::QueryMethodsReturningRelation
172
172
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(School::ActiveRecord_Relation) }
173
173
  def select_columns(*args); end
174
174
 
175
+ sig { params(args: Symbol).returns(School::ActiveRecord_Relation) }
176
+ def where_missing(*args); end
177
+
175
178
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_Relation) }
176
179
  def extending(*args, &block); end
177
180
 
@@ -288,6 +291,9 @@ module School::QueryMethodsReturningAssociationRelation
288
291
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(School::ActiveRecord_AssociationRelation) }
289
292
  def select_columns(*args); end
290
293
 
294
+ sig { params(args: Symbol).returns(School::ActiveRecord_AssociationRelation) }
295
+ def where_missing(*args); end
296
+
291
297
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(School::ActiveRecord_AssociationRelation) }
292
298
  def extending(*args, &block); end
293
299
 
@@ -308,20 +314,20 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation
308
314
  include School::ActiveRelation_WhereNot
309
315
  include School::CustomFinderMethods
310
316
  include School::QueryMethodsReturningRelation
311
- Elem = type_member(fixed: School)
317
+ Elem = type_member {{fixed: School}}
312
318
  end
313
319
 
314
320
  class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
315
321
  include School::ActiveRelation_WhereNot
316
322
  include School::CustomFinderMethods
317
323
  include School::QueryMethodsReturningAssociationRelation
318
- Elem = type_member(fixed: School)
324
+ Elem = type_member {{fixed: School}}
319
325
  end
320
326
 
321
327
  class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
322
328
  include School::CustomFinderMethods
323
329
  include School::QueryMethodsReturningAssociationRelation
324
- Elem = type_member(fixed: School)
330
+ Elem = type_member {{fixed: School}}
325
331
 
326
332
  sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) }
327
333
  def <<(*records); end
@@ -190,6 +190,9 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
190
190
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
191
191
  def select_columns(*args); end
192
192
 
193
+ sig { params(args: Symbol).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
194
+ def where_missing(*args); end
195
+
193
196
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_Relation) }
194
197
  def extending(*args, &block); end
195
198
 
@@ -306,6 +309,9 @@ module Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
306
309
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
307
310
  def select_columns(*args); end
308
311
 
312
+ sig { params(args: Symbol).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
313
+ def where_missing(*args); end
314
+
309
315
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
310
316
  def extending(*args, &block); end
311
317
 
@@ -326,20 +332,20 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
326
332
  include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
327
333
  include Spell::HABTM_SpellBooks::CustomFinderMethods
328
334
  include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
329
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
335
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
330
336
  end
331
337
 
332
338
  class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
333
339
  include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
334
340
  include Spell::HABTM_SpellBooks::CustomFinderMethods
335
341
  include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
336
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
342
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
337
343
  end
338
344
 
339
345
  class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
340
346
  include Spell::HABTM_SpellBooks::CustomFinderMethods
341
347
  include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: Spell::HABTM_SpellBooks)
348
+ Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
343
349
 
344
350
  sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
345
351
  def <<(*records); end
@@ -163,6 +163,9 @@ module Spell::QueryMethodsReturningRelation
163
163
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Spell::ActiveRecord_Relation) }
164
164
  def select_columns(*args); end
165
165
 
166
+ sig { params(args: Symbol).returns(Spell::ActiveRecord_Relation) }
167
+ def where_missing(*args); end
168
+
166
169
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_Relation) }
167
170
  def extending(*args, &block); end
168
171
 
@@ -279,6 +282,9 @@ module Spell::QueryMethodsReturningAssociationRelation
279
282
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(Spell::ActiveRecord_AssociationRelation) }
280
283
  def select_columns(*args); end
281
284
 
285
+ sig { params(args: Symbol).returns(Spell::ActiveRecord_AssociationRelation) }
286
+ def where_missing(*args); end
287
+
282
288
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Spell::ActiveRecord_AssociationRelation) }
283
289
  def extending(*args, &block); end
284
290
 
@@ -299,20 +305,20 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation
299
305
  include Spell::ActiveRelation_WhereNot
300
306
  include Spell::CustomFinderMethods
301
307
  include Spell::QueryMethodsReturningRelation
302
- Elem = type_member(fixed: Spell)
308
+ Elem = type_member {{fixed: Spell}}
303
309
  end
304
310
 
305
311
  class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
306
312
  include Spell::ActiveRelation_WhereNot
307
313
  include Spell::CustomFinderMethods
308
314
  include Spell::QueryMethodsReturningAssociationRelation
309
- Elem = type_member(fixed: Spell)
315
+ Elem = type_member {{fixed: Spell}}
310
316
  end
311
317
 
312
318
  class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
313
319
  include Spell::CustomFinderMethods
314
320
  include Spell::QueryMethodsReturningAssociationRelation
315
- Elem = type_member(fixed: Spell)
321
+ Elem = type_member {{fixed: Spell}}
316
322
 
317
323
  sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
318
324
  def <<(*records); end
@@ -171,7 +171,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relatio
171
171
  include Enumerable
172
172
  extend T::Sig
173
173
  extend T::Generic
174
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
174
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
175
175
 
176
176
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_Relation) }
177
177
  def all; end
@@ -297,7 +297,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveReco
297
297
  include Enumerable
298
298
  extend T::Sig
299
299
  extend T::Generic
300
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
300
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
301
301
 
302
302
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
303
303
  def all; end
@@ -493,7 +493,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < A
493
493
  include Enumerable
494
494
  extend T::Sig
495
495
  extend T::Generic
496
- Elem = type_member(fixed: SpellBook::HABTM_SpellBooks)
496
+ Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
497
497
 
498
498
  sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
499
499
  def all; end
@@ -190,6 +190,9 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningRelation
190
190
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
191
191
  def select_columns(*args); end
192
192
 
193
+ sig { params(args: Symbol).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
194
+ def where_missing(*args); end
195
+
193
196
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_Relation) }
194
197
  def extending(*args, &block); end
195
198
 
@@ -306,6 +309,9 @@ module SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
306
309
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
307
310
  def select_columns(*args); end
308
311
 
312
+ sig { params(args: Symbol).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
313
+ def where_missing(*args); end
314
+
309
315
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation) }
310
316
  def extending(*args, &block); end
311
317
 
@@ -326,20 +332,20 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
326
332
  include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
327
333
  include SpellBook::HABTM_Spells::CustomFinderMethods
328
334
  include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
329
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
335
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
330
336
  end
331
337
 
332
338
  class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
333
339
  include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
334
340
  include SpellBook::HABTM_Spells::CustomFinderMethods
335
341
  include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
336
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
342
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
337
343
  end
338
344
 
339
345
  class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
340
346
  include SpellBook::HABTM_Spells::CustomFinderMethods
341
347
  include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
342
- Elem = type_member(fixed: SpellBook::HABTM_Spells)
348
+ Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
343
349
 
344
350
  sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
345
351
  def <<(*records); end
@@ -163,7 +163,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
163
163
  include SpellBook::ActiveRelation_WhereNot
164
164
  include SpellBook::CustomFinderMethods
165
165
  include SpellBook::QueryMethodsReturningRelation
166
- Elem = type_member(fixed: SpellBook)
166
+ Elem = type_member {{fixed: SpellBook}}
167
167
 
168
168
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
169
169
  def biology(*args); end
@@ -191,7 +191,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
191
191
  include SpellBook::ActiveRelation_WhereNot
192
192
  include SpellBook::CustomFinderMethods
193
193
  include SpellBook::QueryMethodsReturningAssociationRelation
194
- Elem = type_member(fixed: SpellBook)
194
+ Elem = type_member {{fixed: SpellBook}}
195
195
 
196
196
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
197
197
  def biology(*args); end
@@ -218,7 +218,7 @@ end
218
218
  class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
219
219
  include SpellBook::CustomFinderMethods
220
220
  include SpellBook::QueryMethodsReturningAssociationRelation
221
- Elem = type_member(fixed: SpellBook)
221
+ Elem = type_member {{fixed: SpellBook}}
222
222
 
223
223
  sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
224
224
  def biology(*args); end
@@ -354,6 +354,9 @@ module SpellBook::QueryMethodsReturningRelation
354
354
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(SpellBook::ActiveRecord_Relation) }
355
355
  def select_columns(*args); end
356
356
 
357
+ sig { params(args: Symbol).returns(SpellBook::ActiveRecord_Relation) }
358
+ def where_missing(*args); end
359
+
357
360
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_Relation) }
358
361
  def extending(*args, &block); end
359
362
 
@@ -470,6 +473,9 @@ module SpellBook::QueryMethodsReturningAssociationRelation
470
473
  sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(SpellBook::ActiveRecord_AssociationRelation) }
471
474
  def select_columns(*args); end
472
475
 
476
+ sig { params(args: Symbol).returns(SpellBook::ActiveRecord_AssociationRelation) }
477
+ def where_missing(*args); end
478
+
473
479
  sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(SpellBook::ActiveRecord_AssociationRelation) }
474
480
  def extending(*args, &block); end
475
481