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.
- checksums.yaml +4 -4
- data/.github/workflows/ci-master.yml +2 -0
- data/.github/workflows/publish-gem.yml +9 -19
- data/README.md +14 -2
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +3 -3
- data/lib/sorbet-rails/gem_plugins/aasm_plugin.rb +7 -2
- data/lib/sorbet-rails/model_column_utils.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +13 -0
- data/lib/sorbet-rails/model_rbi_formatter.rb +3 -3
- data/lib/sorbet-rails/rails_mixins/custom_finder_methods.rb +8 -0
- data/sorbet-rails.gemspec +2 -2
- data/spec/custom_finder_methods_spec.rb +23 -0
- data/spec/sorbet_spec.rb +3 -0
- data/spec/support/v5.2/Gemfile.lock +76 -67
- data/spec/support/v6.0/Gemfile.lock +93 -85
- data/spec/support/v6.1/Gemfile +1 -1
- data/spec/support/v6.1/Gemfile.lock +115 -108
- data/spec/support/v6.1/sorbet_test_cases.rb +3 -0
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +2 -2
- 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_habtm_subjects.rbi +3 -3
- data/spec/test_data/v5.2/expected_habtm_wizards.rbi +3 -3
- data/spec/test_data/v5.2/expected_headmaster.rbi +3 -3
- 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_robe.rbi +3 -3
- data/spec/test_data/v5.2/expected_schema_migration.rbi +3 -3
- data/spec/test_data/v5.2/expected_school.rbi +3 -3
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +3 -3
- data/spec/test_data/v5.2/expected_spell.rbi +3 -3
- data/spec/test_data/v5.2/expected_spell_book/habtm_spell_books.rbi +3 -3
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +3 -3
- data/spec/test_data/v5.2/expected_spell_book.rbi +3 -3
- data/spec/test_data/v5.2/expected_squib.rbi +3 -3
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +3 -3
- data/spec/test_data/v5.2/expected_subject.rbi +3 -3
- data/spec/test_data/v5.2/expected_wand.rbi +3 -3
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.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 +6 -6
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +2 -2
- 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_habtm_subjects.rbi +3 -3
- data/spec/test_data/v6.0/expected_habtm_wizards.rbi +3 -3
- data/spec/test_data/v6.0/expected_headmaster.rbi +3 -3
- 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_robe.rbi +3 -3
- data/spec/test_data/v6.0/expected_schema_migration.rbi +3 -3
- data/spec/test_data/v6.0/expected_school.rbi +3 -3
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +3 -3
- data/spec/test_data/v6.0/expected_spell.rbi +3 -3
- data/spec/test_data/v6.0/expected_spell_book/habtm_spell_books.rbi +3 -3
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +3 -3
- data/spec/test_data/v6.0/expected_spell_book.rbi +3 -3
- data/spec/test_data/v6.0/expected_squib.rbi +3 -3
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +3 -3
- data/spec/test_data/v6.0/expected_subject.rbi +3 -3
- data/spec/test_data/v6.0/expected_wand.rbi +3 -3
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.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 +6 -6
- data/spec/test_data/v6.1/expected_active_record_relation.rbi +2 -2
- data/spec/test_data/v6.1/expected_attachment.rbi +9 -3
- data/spec/test_data/v6.1/expected_blob.rbi +9 -3
- data/spec/test_data/v6.1/expected_habtm_subjects.rbi +3 -3
- data/spec/test_data/v6.1/expected_habtm_wizards.rbi +3 -3
- data/spec/test_data/v6.1/expected_headmaster.rbi +9 -3
- data/spec/test_data/v6.1/expected_internal_metadata.rbi +9 -3
- data/spec/test_data/v6.1/expected_potion.rbi +9 -3
- data/spec/test_data/v6.1/expected_record.rbi +9 -3
- data/spec/test_data/v6.1/expected_robe.rbi +9 -3
- data/spec/test_data/v6.1/expected_schema_migration.rbi +9 -3
- data/spec/test_data/v6.1/expected_school.rbi +9 -3
- data/spec/test_data/v6.1/expected_spell/habtm_spell_books.rbi +9 -3
- data/spec/test_data/v6.1/expected_spell.rbi +9 -3
- data/spec/test_data/v6.1/expected_spell_book/habtm_spell_books.rbi +3 -3
- data/spec/test_data/v6.1/expected_spell_book/habtm_spells.rbi +9 -3
- data/spec/test_data/v6.1/expected_spell_book.rbi +9 -3
- data/spec/test_data/v6.1/expected_squib.rbi +9 -3
- data/spec/test_data/v6.1/expected_subject/habtm_wizards.rbi +9 -3
- data/spec/test_data/v6.1/expected_subject.rbi +9 -3
- data/spec/test_data/v6.1/expected_variant_record.rbi +9 -3
- data/spec/test_data/v6.1/expected_wand.rbi +9 -3
- data/spec/test_data/v6.1/expected_wizard/habtm_subjects.rbi +9 -3
- data/spec/test_data/v6.1/expected_wizard.rbi +9 -3
- data/spec/test_data/v6.1/expected_wizard_wo_spellbook.rbi +12 -6
- metadata +3 -3
@@ -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
|
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
|
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
|
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
|
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
|
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
|
519
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
520
520
|
|
521
521
|
sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
522
522
|
def all; end
|
@@ -335,20 +335,20 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation
|
|
335
335
|
include Headmaster::ActiveRelation_WhereNot
|
336
336
|
include Headmaster::CustomFinderMethods
|
337
337
|
include Headmaster::QueryMethodsReturningRelation
|
338
|
-
Elem = type_member
|
338
|
+
Elem = type_member {{fixed: Headmaster}}
|
339
339
|
end
|
340
340
|
|
341
341
|
class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
342
342
|
include Headmaster::ActiveRelation_WhereNot
|
343
343
|
include Headmaster::CustomFinderMethods
|
344
344
|
include Headmaster::QueryMethodsReturningAssociationRelation
|
345
|
-
Elem = type_member
|
345
|
+
Elem = type_member {{fixed: Headmaster}}
|
346
346
|
end
|
347
347
|
|
348
348
|
class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
349
349
|
include Headmaster::CustomFinderMethods
|
350
350
|
include Headmaster::QueryMethodsReturningAssociationRelation
|
351
|
-
Elem = type_member
|
351
|
+
Elem = type_member {{fixed: Headmaster}}
|
352
352
|
|
353
353
|
sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) }
|
354
354
|
def <<(*records); end
|
@@ -305,20 +305,20 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela
|
|
305
305
|
include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
306
306
|
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
307
307
|
include ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
|
308
|
-
Elem = type_member
|
308
|
+
Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
|
309
309
|
end
|
310
310
|
|
311
311
|
class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
312
312
|
include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
313
313
|
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
314
314
|
include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
315
|
-
Elem = type_member
|
315
|
+
Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
|
316
316
|
end
|
317
317
|
|
318
318
|
class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
319
319
|
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
320
320
|
include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
321
|
-
Elem = type_member
|
321
|
+
Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
|
322
322
|
|
323
323
|
sig { params(records: T.any(ActiveRecord::InternalMetadata, T::Array[ActiveRecord::InternalMetadata])).returns(T.self_type) }
|
324
324
|
def <<(*records); end
|
@@ -287,20 +287,20 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
|
|
287
287
|
include Potion::ActiveRelation_WhereNot
|
288
288
|
include Potion::CustomFinderMethods
|
289
289
|
include Potion::QueryMethodsReturningRelation
|
290
|
-
Elem = type_member
|
290
|
+
Elem = type_member {{fixed: Potion}}
|
291
291
|
end
|
292
292
|
|
293
293
|
class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
294
294
|
include Potion::ActiveRelation_WhereNot
|
295
295
|
include Potion::CustomFinderMethods
|
296
296
|
include Potion::QueryMethodsReturningAssociationRelation
|
297
|
-
Elem = type_member
|
297
|
+
Elem = type_member {{fixed: Potion}}
|
298
298
|
end
|
299
299
|
|
300
300
|
class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
301
301
|
include Potion::CustomFinderMethods
|
302
302
|
include Potion::QueryMethodsReturningAssociationRelation
|
303
|
-
Elem = type_member
|
303
|
+
Elem = type_member {{fixed: Potion}}
|
304
304
|
|
305
305
|
sig { params(records: T.any(Potion, T::Array[Potion])).returns(T.self_type) }
|
306
306
|
def <<(*records); end
|
@@ -308,20 +308,20 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation
|
|
308
308
|
include Robe::ActiveRelation_WhereNot
|
309
309
|
include Robe::CustomFinderMethods
|
310
310
|
include Robe::QueryMethodsReturningRelation
|
311
|
-
Elem = type_member
|
311
|
+
Elem = type_member {{fixed: Robe}}
|
312
312
|
end
|
313
313
|
|
314
314
|
class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
315
315
|
include Robe::ActiveRelation_WhereNot
|
316
316
|
include Robe::CustomFinderMethods
|
317
317
|
include Robe::QueryMethodsReturningAssociationRelation
|
318
|
-
Elem = type_member
|
318
|
+
Elem = type_member {{fixed: Robe}}
|
319
319
|
end
|
320
320
|
|
321
321
|
class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
322
322
|
include Robe::CustomFinderMethods
|
323
323
|
include Robe::QueryMethodsReturningAssociationRelation
|
324
|
-
Elem = type_member
|
324
|
+
Elem = type_member {{fixed: Robe}}
|
325
325
|
|
326
326
|
sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) }
|
327
327
|
def <<(*records); end
|
@@ -278,20 +278,20 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
|
|
278
278
|
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
279
279
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
280
280
|
include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
281
|
-
Elem = type_member
|
281
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
282
282
|
end
|
283
283
|
|
284
284
|
class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
285
285
|
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
286
286
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
287
287
|
include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
288
|
-
Elem = type_member
|
288
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
289
289
|
end
|
290
290
|
|
291
291
|
class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
292
292
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
293
293
|
include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
294
|
-
Elem = type_member
|
294
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
295
295
|
|
296
296
|
sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
|
297
297
|
def <<(*records); end
|
@@ -308,20 +308,20 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation
|
|
308
308
|
include School::ActiveRelation_WhereNot
|
309
309
|
include School::CustomFinderMethods
|
310
310
|
include School::QueryMethodsReturningRelation
|
311
|
-
Elem = type_member
|
311
|
+
Elem = type_member {{fixed: School}}
|
312
312
|
end
|
313
313
|
|
314
314
|
class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
315
315
|
include School::ActiveRelation_WhereNot
|
316
316
|
include School::CustomFinderMethods
|
317
317
|
include School::QueryMethodsReturningAssociationRelation
|
318
|
-
Elem = type_member
|
318
|
+
Elem = type_member {{fixed: School}}
|
319
319
|
end
|
320
320
|
|
321
321
|
class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
322
322
|
include School::CustomFinderMethods
|
323
323
|
include School::QueryMethodsReturningAssociationRelation
|
324
|
-
Elem = type_member
|
324
|
+
Elem = type_member {{fixed: School}}
|
325
325
|
|
326
326
|
sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) }
|
327
327
|
def <<(*records); end
|
@@ -326,20 +326,20 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
|
|
326
326
|
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
327
327
|
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
328
328
|
include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
329
|
-
Elem = type_member
|
329
|
+
Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
|
330
330
|
end
|
331
331
|
|
332
332
|
class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
333
333
|
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
334
334
|
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
335
335
|
include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
336
|
-
Elem = type_member
|
336
|
+
Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
|
337
337
|
end
|
338
338
|
|
339
339
|
class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
340
340
|
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
341
341
|
include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
342
|
-
Elem = type_member
|
342
|
+
Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
|
343
343
|
|
344
344
|
sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
|
345
345
|
def <<(*records); end
|
@@ -299,20 +299,20 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation
|
|
299
299
|
include Spell::ActiveRelation_WhereNot
|
300
300
|
include Spell::CustomFinderMethods
|
301
301
|
include Spell::QueryMethodsReturningRelation
|
302
|
-
Elem = type_member
|
302
|
+
Elem = type_member {{fixed: Spell}}
|
303
303
|
end
|
304
304
|
|
305
305
|
class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
306
306
|
include Spell::ActiveRelation_WhereNot
|
307
307
|
include Spell::CustomFinderMethods
|
308
308
|
include Spell::QueryMethodsReturningAssociationRelation
|
309
|
-
Elem = type_member
|
309
|
+
Elem = type_member {{fixed: Spell}}
|
310
310
|
end
|
311
311
|
|
312
312
|
class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
313
313
|
include Spell::CustomFinderMethods
|
314
314
|
include Spell::QueryMethodsReturningAssociationRelation
|
315
|
-
Elem = type_member
|
315
|
+
Elem = type_member {{fixed: Spell}}
|
316
316
|
|
317
317
|
sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
|
318
318
|
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
|
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
|
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
|
496
|
+
Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
|
497
497
|
|
498
498
|
sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
499
499
|
def all; end
|
@@ -326,20 +326,20 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
|
326
326
|
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
327
327
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
328
328
|
include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
329
|
-
Elem = type_member
|
329
|
+
Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
|
330
330
|
end
|
331
331
|
|
332
332
|
class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
333
333
|
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
334
334
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
335
335
|
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
336
|
-
Elem = type_member
|
336
|
+
Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
|
337
337
|
end
|
338
338
|
|
339
339
|
class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
340
340
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
341
341
|
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
342
|
-
Elem = type_member
|
342
|
+
Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
|
343
343
|
|
344
344
|
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
345
345
|
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
|
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
|
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
|
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
|
@@ -446,7 +446,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
|
446
446
|
include Squib::ActiveRelation_WhereNot
|
447
447
|
include Squib::CustomFinderMethods
|
448
448
|
include Squib::QueryMethodsReturningRelation
|
449
|
-
Elem = type_member
|
449
|
+
Elem = type_member {{fixed: Squib}}
|
450
450
|
|
451
451
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
452
452
|
def Gryffindor(*args); end
|
@@ -564,7 +564,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio
|
|
564
564
|
include Squib::ActiveRelation_WhereNot
|
565
565
|
include Squib::CustomFinderMethods
|
566
566
|
include Squib::QueryMethodsReturningAssociationRelation
|
567
|
-
Elem = type_member
|
567
|
+
Elem = type_member {{fixed: Squib}}
|
568
568
|
|
569
569
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
570
570
|
def Gryffindor(*args); end
|
@@ -681,7 +681,7 @@ end
|
|
681
681
|
class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
682
682
|
include Squib::CustomFinderMethods
|
683
683
|
include Squib::QueryMethodsReturningAssociationRelation
|
684
|
-
Elem = type_member
|
684
|
+
Elem = type_member {{fixed: Squib}}
|
685
685
|
|
686
686
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
687
687
|
def Gryffindor(*args); end
|
@@ -326,20 +326,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
|
|
326
326
|
include Subject::HABTM_Wizards::ActiveRelation_WhereNot
|
327
327
|
include Subject::HABTM_Wizards::CustomFinderMethods
|
328
328
|
include Subject::HABTM_Wizards::QueryMethodsReturningRelation
|
329
|
-
Elem = type_member
|
329
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
330
330
|
end
|
331
331
|
|
332
332
|
class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
333
333
|
include Subject::HABTM_Wizards::ActiveRelation_WhereNot
|
334
334
|
include Subject::HABTM_Wizards::CustomFinderMethods
|
335
335
|
include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
336
|
-
Elem = type_member
|
336
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
337
337
|
end
|
338
338
|
|
339
339
|
class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
340
340
|
include Subject::HABTM_Wizards::CustomFinderMethods
|
341
341
|
include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
342
|
-
Elem = type_member
|
342
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
343
343
|
|
344
344
|
sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
|
345
345
|
def <<(*records); end
|
@@ -299,20 +299,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation
|
|
299
299
|
include Subject::ActiveRelation_WhereNot
|
300
300
|
include Subject::CustomFinderMethods
|
301
301
|
include Subject::QueryMethodsReturningRelation
|
302
|
-
Elem = type_member
|
302
|
+
Elem = type_member {{fixed: Subject}}
|
303
303
|
end
|
304
304
|
|
305
305
|
class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
306
306
|
include Subject::ActiveRelation_WhereNot
|
307
307
|
include Subject::CustomFinderMethods
|
308
308
|
include Subject::QueryMethodsReturningAssociationRelation
|
309
|
-
Elem = type_member
|
309
|
+
Elem = type_member {{fixed: Subject}}
|
310
310
|
end
|
311
311
|
|
312
312
|
class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
313
313
|
include Subject::CustomFinderMethods
|
314
314
|
include Subject::QueryMethodsReturningAssociationRelation
|
315
|
-
Elem = type_member
|
315
|
+
Elem = type_member {{fixed: Subject}}
|
316
316
|
|
317
317
|
sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
|
318
318
|
def <<(*records); end
|
@@ -266,7 +266,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
|
266
266
|
include Wand::ActiveRelation_WhereNot
|
267
267
|
include Wand::CustomFinderMethods
|
268
268
|
include Wand::QueryMethodsReturningRelation
|
269
|
-
Elem = type_member
|
269
|
+
Elem = type_member {{fixed: Wand}}
|
270
270
|
|
271
271
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
272
272
|
def basilisk_horn(*args); end
|
@@ -297,7 +297,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
|
297
297
|
include Wand::ActiveRelation_WhereNot
|
298
298
|
include Wand::CustomFinderMethods
|
299
299
|
include Wand::QueryMethodsReturningAssociationRelation
|
300
|
-
Elem = type_member
|
300
|
+
Elem = type_member {{fixed: Wand}}
|
301
301
|
|
302
302
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
303
303
|
def basilisk_horn(*args); end
|
@@ -327,7 +327,7 @@ end
|
|
327
327
|
class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
328
328
|
include Wand::CustomFinderMethods
|
329
329
|
include Wand::QueryMethodsReturningAssociationRelation
|
330
|
-
Elem = type_member
|
330
|
+
Elem = type_member {{fixed: Wand}}
|
331
331
|
|
332
332
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
333
333
|
def basilisk_horn(*args); end
|
@@ -326,20 +326,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
|
|
326
326
|
include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
|
327
327
|
include Wizard::HABTM_Subjects::CustomFinderMethods
|
328
328
|
include Wizard::HABTM_Subjects::QueryMethodsReturningRelation
|
329
|
-
Elem = type_member
|
329
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
330
330
|
end
|
331
331
|
|
332
332
|
class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
333
333
|
include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
|
334
334
|
include Wizard::HABTM_Subjects::CustomFinderMethods
|
335
335
|
include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
|
336
|
-
Elem = type_member
|
336
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
337
337
|
end
|
338
338
|
|
339
339
|
class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
340
340
|
include Wizard::HABTM_Subjects::CustomFinderMethods
|
341
341
|
include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
|
342
|
-
Elem = type_member
|
342
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
343
343
|
|
344
344
|
sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) }
|
345
345
|
def <<(*records); end
|
@@ -522,7 +522,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
522
522
|
include Wizard::ActiveRelation_WhereNot
|
523
523
|
include Wizard::CustomFinderMethods
|
524
524
|
include Wizard::QueryMethodsReturningRelation
|
525
|
-
Elem = type_member
|
525
|
+
Elem = type_member {{fixed: Wizard}}
|
526
526
|
|
527
527
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
528
528
|
def Gryffindor(*args); end
|
@@ -640,7 +640,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
640
640
|
include Wizard::ActiveRelation_WhereNot
|
641
641
|
include Wizard::CustomFinderMethods
|
642
642
|
include Wizard::QueryMethodsReturningAssociationRelation
|
643
|
-
Elem = type_member
|
643
|
+
Elem = type_member {{fixed: Wizard}}
|
644
644
|
|
645
645
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
646
646
|
def Gryffindor(*args); end
|
@@ -757,7 +757,7 @@ end
|
|
757
757
|
class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
758
758
|
include Wizard::CustomFinderMethods
|
759
759
|
include Wizard::QueryMethodsReturningAssociationRelation
|
760
|
-
Elem = type_member
|
760
|
+
Elem = type_member {{fixed: Wizard}}
|
761
761
|
|
762
762
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
763
763
|
def Gryffindor(*args); end
|
@@ -522,7 +522,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
522
522
|
include Wizard::ActiveRelation_WhereNot
|
523
523
|
include Wizard::CustomFinderMethods
|
524
524
|
include Wizard::QueryMethodsReturningRelation
|
525
|
-
Elem = type_member
|
525
|
+
Elem = type_member {{fixed: Wizard}}
|
526
526
|
|
527
527
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
528
528
|
def Gryffindor(*args); end
|
@@ -640,7 +640,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
640
640
|
include Wizard::ActiveRelation_WhereNot
|
641
641
|
include Wizard::CustomFinderMethods
|
642
642
|
include Wizard::QueryMethodsReturningAssociationRelation
|
643
|
-
Elem = type_member
|
643
|
+
Elem = type_member {{fixed: Wizard}}
|
644
644
|
|
645
645
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
646
646
|
def Gryffindor(*args); end
|
@@ -757,7 +757,7 @@ end
|
|
757
757
|
class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
758
758
|
include Wizard::CustomFinderMethods
|
759
759
|
include Wizard::QueryMethodsReturningAssociationRelation
|
760
|
-
Elem = type_member
|
760
|
+
Elem = type_member {{fixed: Wizard}}
|
761
761
|
|
762
762
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
763
763
|
def Gryffindor(*args); end
|
@@ -1134,7 +1134,7 @@ module Wizard::GeneratedAssociationMethods
|
|
1134
1134
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
1135
1135
|
def hats_blobs=(value); end
|
1136
1136
|
|
1137
|
-
sig { returns(T.
|
1137
|
+
sig { returns(T.untyped) }
|
1138
1138
|
def school; end
|
1139
1139
|
|
1140
1140
|
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
@@ -1146,10 +1146,10 @@ module Wizard::GeneratedAssociationMethods
|
|
1146
1146
|
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
1147
1147
|
def create_school!(*args, &block); end
|
1148
1148
|
|
1149
|
-
sig { params(value: T.
|
1149
|
+
sig { params(value: T.untyped).void }
|
1150
1150
|
def school=(value); end
|
1151
1151
|
|
1152
|
-
sig { returns(T.
|
1152
|
+
sig { returns(T.untyped) }
|
1153
1153
|
def reload_school; end
|
1154
1154
|
|
1155
1155
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
@@ -133,7 +133,7 @@ class ActiveRecord::Relation
|
|
133
133
|
end
|
134
134
|
|
135
135
|
class ActiveRecord::AssociationRelation < ActiveRecord::Relation
|
136
|
-
Elem = type_member
|
136
|
+
Elem = type_member {{fixed: T.untyped}}
|
137
137
|
|
138
138
|
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) }
|
139
139
|
def new(attributes = nil, &block); end
|
@@ -149,7 +149,7 @@ class ActiveRecord::AssociationRelation < ActiveRecord::Relation
|
|
149
149
|
end
|
150
150
|
|
151
151
|
class ActiveRecord::Associations::CollectionProxy < ActiveRecord::Relation
|
152
|
-
Elem = type_member
|
152
|
+
Elem = type_member {{fixed: T.untyped}}
|
153
153
|
|
154
154
|
sig { params(attributes: T.untyped, block: T.nilable(T.proc.params(object: Elem).void)).returns(Elem) }
|
155
155
|
def new(attributes = nil, &block); end
|
@@ -169,6 +169,9 @@ module ActiveStorage::Attachment::QueryMethodsReturningRelation
|
|
169
169
|
sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
170
170
|
def select_columns(*args); end
|
171
171
|
|
172
|
+
sig { params(args: Symbol).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
173
|
+
def where_missing(*args); end
|
174
|
+
|
172
175
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
173
176
|
def extending(*args, &block); end
|
174
177
|
|
@@ -285,6 +288,9 @@ module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
|
285
288
|
sig { params(args: T.any(String, Symbol, T::Array[T.any(String, Symbol)])).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
286
289
|
def select_columns(*args); end
|
287
290
|
|
291
|
+
sig { params(args: Symbol).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
292
|
+
def where_missing(*args); end
|
293
|
+
|
288
294
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
289
295
|
def extending(*args, &block); end
|
290
296
|
|
@@ -305,20 +311,20 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
|
305
311
|
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
306
312
|
include ActiveStorage::Attachment::CustomFinderMethods
|
307
313
|
include ActiveStorage::Attachment::QueryMethodsReturningRelation
|
308
|
-
Elem = type_member
|
314
|
+
Elem = type_member {{fixed: ActiveStorage::Attachment}}
|
309
315
|
end
|
310
316
|
|
311
317
|
class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
312
318
|
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
313
319
|
include ActiveStorage::Attachment::CustomFinderMethods
|
314
320
|
include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
315
|
-
Elem = type_member
|
321
|
+
Elem = type_member {{fixed: ActiveStorage::Attachment}}
|
316
322
|
end
|
317
323
|
|
318
324
|
class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
319
325
|
include ActiveStorage::Attachment::CustomFinderMethods
|
320
326
|
include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
321
|
-
Elem = type_member
|
327
|
+
Elem = type_member {{fixed: ActiveStorage::Attachment}}
|
322
328
|
|
323
329
|
sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
|
324
330
|
def <<(*records); end
|