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
@@ -88,7 +88,7 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
|
88
88
|
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
89
89
|
include ActiveStorage::Blob::CustomFinderMethods
|
90
90
|
include ActiveStorage::Blob::QueryMethodsReturningRelation
|
91
|
-
Elem = type_member
|
91
|
+
Elem = type_member {{fixed: ActiveStorage::Blob}}
|
92
92
|
|
93
93
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
94
94
|
def unattached(*args); end
|
@@ -101,7 +101,7 @@ class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::Asso
|
|
101
101
|
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
102
102
|
include ActiveStorage::Blob::CustomFinderMethods
|
103
103
|
include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
104
|
-
Elem = type_member
|
104
|
+
Elem = type_member {{fixed: ActiveStorage::Blob}}
|
105
105
|
|
106
106
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
107
107
|
def unattached(*args); end
|
@@ -113,7 +113,7 @@ end
|
|
113
113
|
class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
114
114
|
include ActiveStorage::Blob::CustomFinderMethods
|
115
115
|
include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
116
|
-
Elem = type_member
|
116
|
+
Elem = type_member {{fixed: ActiveStorage::Blob}}
|
117
117
|
|
118
118
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
119
119
|
def unattached(*args); end
|
@@ -182,7 +182,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
|
|
182
182
|
include Enumerable
|
183
183
|
extend T::Sig
|
184
184
|
extend T::Generic
|
185
|
-
Elem = type_member
|
185
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
186
186
|
|
187
187
|
sig { returns(Wizard::HABTM_Subjects::ActiveRecord_Relation) }
|
188
188
|
def all; end
|
@@ -296,7 +296,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::A
|
|
296
296
|
include Enumerable
|
297
297
|
extend T::Sig
|
298
298
|
extend T::Generic
|
299
|
-
Elem = type_member
|
299
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
300
300
|
|
301
301
|
sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
|
302
302
|
def all; end
|
@@ -480,7 +480,7 @@ class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < Active
|
|
480
480
|
include Enumerable
|
481
481
|
extend T::Sig
|
482
482
|
extend T::Generic
|
483
|
-
Elem = type_member
|
483
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
484
484
|
|
485
485
|
sig { returns(Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation) }
|
486
486
|
def all; end
|
@@ -182,7 +182,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
|
|
182
182
|
include Enumerable
|
183
183
|
extend T::Sig
|
184
184
|
extend T::Generic
|
185
|
-
Elem = type_member
|
185
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
186
186
|
|
187
187
|
sig { returns(Subject::HABTM_Wizards::ActiveRecord_Relation) }
|
188
188
|
def all; end
|
@@ -296,7 +296,7 @@ class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::A
|
|
296
296
|
include Enumerable
|
297
297
|
extend T::Sig
|
298
298
|
extend T::Generic
|
299
|
-
Elem = type_member
|
299
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
300
300
|
|
301
301
|
sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
302
302
|
def all; end
|
@@ -480,7 +480,7 @@ class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < Active
|
|
480
480
|
include Enumerable
|
481
481
|
extend T::Sig
|
482
482
|
extend T::Generic
|
483
|
-
Elem = type_member
|
483
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
484
484
|
|
485
485
|
sig { returns(Subject::HABTM_Wizards::ActiveRecord_AssociationRelation) }
|
486
486
|
def all; end
|
@@ -311,20 +311,20 @@ class Headmaster::ActiveRecord_Relation < ActiveRecord::Relation
|
|
311
311
|
include Headmaster::ActiveRelation_WhereNot
|
312
312
|
include Headmaster::CustomFinderMethods
|
313
313
|
include Headmaster::QueryMethodsReturningRelation
|
314
|
-
Elem = type_member
|
314
|
+
Elem = type_member {{fixed: Headmaster}}
|
315
315
|
end
|
316
316
|
|
317
317
|
class Headmaster::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
318
318
|
include Headmaster::ActiveRelation_WhereNot
|
319
319
|
include Headmaster::CustomFinderMethods
|
320
320
|
include Headmaster::QueryMethodsReturningAssociationRelation
|
321
|
-
Elem = type_member
|
321
|
+
Elem = type_member {{fixed: Headmaster}}
|
322
322
|
end
|
323
323
|
|
324
324
|
class Headmaster::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
325
325
|
include Headmaster::CustomFinderMethods
|
326
326
|
include Headmaster::QueryMethodsReturningAssociationRelation
|
327
|
-
Elem = type_member
|
327
|
+
Elem = type_member {{fixed: Headmaster}}
|
328
328
|
|
329
329
|
sig { params(records: T.any(Headmaster, T::Array[Headmaster])).returns(T.self_type) }
|
330
330
|
def <<(*records); end
|
@@ -281,20 +281,20 @@ class ActiveRecord::InternalMetadata::ActiveRecord_Relation < ActiveRecord::Rela
|
|
281
281
|
include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
282
282
|
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
283
283
|
include ActiveRecord::InternalMetadata::QueryMethodsReturningRelation
|
284
|
-
Elem = type_member
|
284
|
+
Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
|
285
285
|
end
|
286
286
|
|
287
287
|
class ActiveRecord::InternalMetadata::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
288
288
|
include ActiveRecord::InternalMetadata::ActiveRelation_WhereNot
|
289
289
|
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
290
290
|
include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
291
|
-
Elem = type_member
|
291
|
+
Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
|
292
292
|
end
|
293
293
|
|
294
294
|
class ActiveRecord::InternalMetadata::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
295
295
|
include ActiveRecord::InternalMetadata::CustomFinderMethods
|
296
296
|
include ActiveRecord::InternalMetadata::QueryMethodsReturningAssociationRelation
|
297
|
-
Elem = type_member
|
297
|
+
Elem = type_member {{fixed: ActiveRecord::InternalMetadata}}
|
298
298
|
|
299
299
|
sig { params(records: T.any(ActiveRecord::InternalMetadata, T::Array[ActiveRecord::InternalMetadata])).returns(T.self_type) }
|
300
300
|
def <<(*records); end
|
@@ -263,20 +263,20 @@ class Potion::ActiveRecord_Relation < ActiveRecord::Relation
|
|
263
263
|
include Potion::ActiveRelation_WhereNot
|
264
264
|
include Potion::CustomFinderMethods
|
265
265
|
include Potion::QueryMethodsReturningRelation
|
266
|
-
Elem = type_member
|
266
|
+
Elem = type_member {{fixed: Potion}}
|
267
267
|
end
|
268
268
|
|
269
269
|
class Potion::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
270
270
|
include Potion::ActiveRelation_WhereNot
|
271
271
|
include Potion::CustomFinderMethods
|
272
272
|
include Potion::QueryMethodsReturningAssociationRelation
|
273
|
-
Elem = type_member
|
273
|
+
Elem = type_member {{fixed: Potion}}
|
274
274
|
end
|
275
275
|
|
276
276
|
class Potion::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
277
277
|
include Potion::CustomFinderMethods
|
278
278
|
include Potion::QueryMethodsReturningAssociationRelation
|
279
|
-
Elem = type_member
|
279
|
+
Elem = type_member {{fixed: Potion}}
|
280
280
|
|
281
281
|
sig { params(records: T.any(Potion, T::Array[Potion])).returns(T.self_type) }
|
282
282
|
def <<(*records); end
|
@@ -284,20 +284,20 @@ class Robe::ActiveRecord_Relation < ActiveRecord::Relation
|
|
284
284
|
include Robe::ActiveRelation_WhereNot
|
285
285
|
include Robe::CustomFinderMethods
|
286
286
|
include Robe::QueryMethodsReturningRelation
|
287
|
-
Elem = type_member
|
287
|
+
Elem = type_member {{fixed: Robe}}
|
288
288
|
end
|
289
289
|
|
290
290
|
class Robe::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
291
291
|
include Robe::ActiveRelation_WhereNot
|
292
292
|
include Robe::CustomFinderMethods
|
293
293
|
include Robe::QueryMethodsReturningAssociationRelation
|
294
|
-
Elem = type_member
|
294
|
+
Elem = type_member {{fixed: Robe}}
|
295
295
|
end
|
296
296
|
|
297
297
|
class Robe::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
298
298
|
include Robe::CustomFinderMethods
|
299
299
|
include Robe::QueryMethodsReturningAssociationRelation
|
300
|
-
Elem = type_member
|
300
|
+
Elem = type_member {{fixed: Robe}}
|
301
301
|
|
302
302
|
sig { params(records: T.any(Robe, T::Array[Robe])).returns(T.self_type) }
|
303
303
|
def <<(*records); end
|
@@ -254,20 +254,20 @@ class ActiveRecord::SchemaMigration::ActiveRecord_Relation < ActiveRecord::Relat
|
|
254
254
|
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
255
255
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
256
256
|
include ActiveRecord::SchemaMigration::QueryMethodsReturningRelation
|
257
|
-
Elem = type_member
|
257
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
258
258
|
end
|
259
259
|
|
260
260
|
class ActiveRecord::SchemaMigration::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
261
261
|
include ActiveRecord::SchemaMigration::ActiveRelation_WhereNot
|
262
262
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
263
263
|
include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
264
|
-
Elem = type_member
|
264
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
265
265
|
end
|
266
266
|
|
267
267
|
class ActiveRecord::SchemaMigration::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
268
268
|
include ActiveRecord::SchemaMigration::CustomFinderMethods
|
269
269
|
include ActiveRecord::SchemaMigration::QueryMethodsReturningAssociationRelation
|
270
|
-
Elem = type_member
|
270
|
+
Elem = type_member {{fixed: ActiveRecord::SchemaMigration}}
|
271
271
|
|
272
272
|
sig { params(records: T.any(ActiveRecord::SchemaMigration, T::Array[ActiveRecord::SchemaMigration])).returns(T.self_type) }
|
273
273
|
def <<(*records); end
|
@@ -284,20 +284,20 @@ class School::ActiveRecord_Relation < ActiveRecord::Relation
|
|
284
284
|
include School::ActiveRelation_WhereNot
|
285
285
|
include School::CustomFinderMethods
|
286
286
|
include School::QueryMethodsReturningRelation
|
287
|
-
Elem = type_member
|
287
|
+
Elem = type_member {{fixed: School}}
|
288
288
|
end
|
289
289
|
|
290
290
|
class School::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
291
291
|
include School::ActiveRelation_WhereNot
|
292
292
|
include School::CustomFinderMethods
|
293
293
|
include School::QueryMethodsReturningAssociationRelation
|
294
|
-
Elem = type_member
|
294
|
+
Elem = type_member {{fixed: School}}
|
295
295
|
end
|
296
296
|
|
297
297
|
class School::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
298
298
|
include School::CustomFinderMethods
|
299
299
|
include School::QueryMethodsReturningAssociationRelation
|
300
|
-
Elem = type_member
|
300
|
+
Elem = type_member {{fixed: School}}
|
301
301
|
|
302
302
|
sig { params(records: T.any(School, T::Array[School])).returns(T.self_type) }
|
303
303
|
def <<(*records); end
|
@@ -302,20 +302,20 @@ class Spell::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relation
|
|
302
302
|
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
303
303
|
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
304
304
|
include Spell::HABTM_SpellBooks::QueryMethodsReturningRelation
|
305
|
-
Elem = type_member
|
305
|
+
Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
|
306
306
|
end
|
307
307
|
|
308
308
|
class Spell::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
309
309
|
include Spell::HABTM_SpellBooks::ActiveRelation_WhereNot
|
310
310
|
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
311
311
|
include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
312
|
-
Elem = type_member
|
312
|
+
Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
|
313
313
|
end
|
314
314
|
|
315
315
|
class Spell::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
316
316
|
include Spell::HABTM_SpellBooks::CustomFinderMethods
|
317
317
|
include Spell::HABTM_SpellBooks::QueryMethodsReturningAssociationRelation
|
318
|
-
Elem = type_member
|
318
|
+
Elem = type_member {{fixed: Spell::HABTM_SpellBooks}}
|
319
319
|
|
320
320
|
sig { params(records: T.any(Spell::HABTM_SpellBooks, T::Array[Spell::HABTM_SpellBooks])).returns(T.self_type) }
|
321
321
|
def <<(*records); end
|
@@ -275,20 +275,20 @@ class Spell::ActiveRecord_Relation < ActiveRecord::Relation
|
|
275
275
|
include Spell::ActiveRelation_WhereNot
|
276
276
|
include Spell::CustomFinderMethods
|
277
277
|
include Spell::QueryMethodsReturningRelation
|
278
|
-
Elem = type_member
|
278
|
+
Elem = type_member {{fixed: Spell}}
|
279
279
|
end
|
280
280
|
|
281
281
|
class Spell::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
282
282
|
include Spell::ActiveRelation_WhereNot
|
283
283
|
include Spell::CustomFinderMethods
|
284
284
|
include Spell::QueryMethodsReturningAssociationRelation
|
285
|
-
Elem = type_member
|
285
|
+
Elem = type_member {{fixed: Spell}}
|
286
286
|
end
|
287
287
|
|
288
288
|
class Spell::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
289
289
|
include Spell::CustomFinderMethods
|
290
290
|
include Spell::QueryMethodsReturningAssociationRelation
|
291
|
-
Elem = type_member
|
291
|
+
Elem = type_member {{fixed: Spell}}
|
292
292
|
|
293
293
|
sig { params(records: T.any(Spell, T::Array[Spell])).returns(T.self_type) }
|
294
294
|
def <<(*records); end
|
@@ -159,7 +159,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Relation < ActiveRecord::Relatio
|
|
159
159
|
include Enumerable
|
160
160
|
extend T::Sig
|
161
161
|
extend T::Generic
|
162
|
-
Elem = type_member
|
162
|
+
Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
|
163
163
|
|
164
164
|
sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_Relation) }
|
165
165
|
def all; end
|
@@ -273,7 +273,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation < ActiveReco
|
|
273
273
|
include Enumerable
|
274
274
|
extend T::Sig
|
275
275
|
extend T::Generic
|
276
|
-
Elem = type_member
|
276
|
+
Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
|
277
277
|
|
278
278
|
sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
279
279
|
def all; end
|
@@ -457,7 +457,7 @@ class SpellBook::HABTM_SpellBooks::ActiveRecord_Associations_CollectionProxy < A
|
|
457
457
|
include Enumerable
|
458
458
|
extend T::Sig
|
459
459
|
extend T::Generic
|
460
|
-
Elem = type_member
|
460
|
+
Elem = type_member {{fixed: SpellBook::HABTM_SpellBooks}}
|
461
461
|
|
462
462
|
sig { returns(SpellBook::HABTM_SpellBooks::ActiveRecord_AssociationRelation) }
|
463
463
|
def all; end
|
@@ -302,20 +302,20 @@ class SpellBook::HABTM_Spells::ActiveRecord_Relation < ActiveRecord::Relation
|
|
302
302
|
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
303
303
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
304
304
|
include SpellBook::HABTM_Spells::QueryMethodsReturningRelation
|
305
|
-
Elem = type_member
|
305
|
+
Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
|
306
306
|
end
|
307
307
|
|
308
308
|
class SpellBook::HABTM_Spells::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
309
309
|
include SpellBook::HABTM_Spells::ActiveRelation_WhereNot
|
310
310
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
311
311
|
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
312
|
-
Elem = type_member
|
312
|
+
Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
|
313
313
|
end
|
314
314
|
|
315
315
|
class SpellBook::HABTM_Spells::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
316
316
|
include SpellBook::HABTM_Spells::CustomFinderMethods
|
317
317
|
include SpellBook::HABTM_Spells::QueryMethodsReturningAssociationRelation
|
318
|
-
Elem = type_member
|
318
|
+
Elem = type_member {{fixed: SpellBook::HABTM_Spells}}
|
319
319
|
|
320
320
|
sig { params(records: T.any(SpellBook::HABTM_Spells, T::Array[SpellBook::HABTM_Spells])).returns(T.self_type) }
|
321
321
|
def <<(*records); end
|
@@ -154,7 +154,7 @@ class SpellBook::ActiveRecord_Relation < ActiveRecord::Relation
|
|
154
154
|
include SpellBook::ActiveRelation_WhereNot
|
155
155
|
include SpellBook::CustomFinderMethods
|
156
156
|
include SpellBook::QueryMethodsReturningRelation
|
157
|
-
Elem = type_member
|
157
|
+
Elem = type_member {{fixed: SpellBook}}
|
158
158
|
|
159
159
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_Relation) }
|
160
160
|
def biology(*args); end
|
@@ -173,7 +173,7 @@ class SpellBook::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRel
|
|
173
173
|
include SpellBook::ActiveRelation_WhereNot
|
174
174
|
include SpellBook::CustomFinderMethods
|
175
175
|
include SpellBook::QueryMethodsReturningAssociationRelation
|
176
|
-
Elem = type_member
|
176
|
+
Elem = type_member {{fixed: SpellBook}}
|
177
177
|
|
178
178
|
sig { params(args: T.untyped).returns(SpellBook::ActiveRecord_AssociationRelation) }
|
179
179
|
def biology(*args); end
|
@@ -191,7 +191,7 @@ end
|
|
191
191
|
class SpellBook::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
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
|
@@ -505,7 +505,7 @@ class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
|
505
505
|
include Squib::ActiveRelation_WhereNot
|
506
506
|
include Squib::CustomFinderMethods
|
507
507
|
include Squib::QueryMethodsReturningRelation
|
508
|
-
Elem = type_member
|
508
|
+
Elem = type_member {{fixed: Squib}}
|
509
509
|
|
510
510
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
511
511
|
def Gryffindor(*args); end
|
@@ -572,7 +572,7 @@ class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelatio
|
|
572
572
|
include Squib::ActiveRelation_WhereNot
|
573
573
|
include Squib::CustomFinderMethods
|
574
574
|
include Squib::QueryMethodsReturningAssociationRelation
|
575
|
-
Elem = type_member
|
575
|
+
Elem = type_member {{fixed: Squib}}
|
576
576
|
|
577
577
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
578
578
|
def Gryffindor(*args); end
|
@@ -638,7 +638,7 @@ end
|
|
638
638
|
class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
639
639
|
include Squib::CustomFinderMethods
|
640
640
|
include Squib::QueryMethodsReturningAssociationRelation
|
641
|
-
Elem = type_member
|
641
|
+
Elem = type_member {{fixed: Squib}}
|
642
642
|
|
643
643
|
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
644
644
|
def Gryffindor(*args); end
|
@@ -302,20 +302,20 @@ class Subject::HABTM_Wizards::ActiveRecord_Relation < ActiveRecord::Relation
|
|
302
302
|
include Subject::HABTM_Wizards::ActiveRelation_WhereNot
|
303
303
|
include Subject::HABTM_Wizards::CustomFinderMethods
|
304
304
|
include Subject::HABTM_Wizards::QueryMethodsReturningRelation
|
305
|
-
Elem = type_member
|
305
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
306
306
|
end
|
307
307
|
|
308
308
|
class Subject::HABTM_Wizards::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
309
309
|
include Subject::HABTM_Wizards::ActiveRelation_WhereNot
|
310
310
|
include Subject::HABTM_Wizards::CustomFinderMethods
|
311
311
|
include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
312
|
-
Elem = type_member
|
312
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
313
313
|
end
|
314
314
|
|
315
315
|
class Subject::HABTM_Wizards::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
316
316
|
include Subject::HABTM_Wizards::CustomFinderMethods
|
317
317
|
include Subject::HABTM_Wizards::QueryMethodsReturningAssociationRelation
|
318
|
-
Elem = type_member
|
318
|
+
Elem = type_member {{fixed: Subject::HABTM_Wizards}}
|
319
319
|
|
320
320
|
sig { params(records: T.any(Subject::HABTM_Wizards, T::Array[Subject::HABTM_Wizards])).returns(T.self_type) }
|
321
321
|
def <<(*records); end
|
@@ -275,20 +275,20 @@ class Subject::ActiveRecord_Relation < ActiveRecord::Relation
|
|
275
275
|
include Subject::ActiveRelation_WhereNot
|
276
276
|
include Subject::CustomFinderMethods
|
277
277
|
include Subject::QueryMethodsReturningRelation
|
278
|
-
Elem = type_member
|
278
|
+
Elem = type_member {{fixed: Subject}}
|
279
279
|
end
|
280
280
|
|
281
281
|
class Subject::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
282
282
|
include Subject::ActiveRelation_WhereNot
|
283
283
|
include Subject::CustomFinderMethods
|
284
284
|
include Subject::QueryMethodsReturningAssociationRelation
|
285
|
-
Elem = type_member
|
285
|
+
Elem = type_member {{fixed: Subject}}
|
286
286
|
end
|
287
287
|
|
288
288
|
class Subject::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
289
289
|
include Subject::CustomFinderMethods
|
290
290
|
include Subject::QueryMethodsReturningAssociationRelation
|
291
|
-
Elem = type_member
|
291
|
+
Elem = type_member {{fixed: Subject}}
|
292
292
|
|
293
293
|
sig { params(records: T.any(Subject, T::Array[Subject])).returns(T.self_type) }
|
294
294
|
def <<(*records); end
|
@@ -254,7 +254,7 @@ class Wand::ActiveRecord_Relation < ActiveRecord::Relation
|
|
254
254
|
include Wand::ActiveRelation_WhereNot
|
255
255
|
include Wand::CustomFinderMethods
|
256
256
|
include Wand::QueryMethodsReturningRelation
|
257
|
-
Elem = type_member
|
257
|
+
Elem = type_member {{fixed: Wand}}
|
258
258
|
|
259
259
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_Relation) }
|
260
260
|
def basilisk_horn(*args); end
|
@@ -273,7 +273,7 @@ class Wand::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
|
273
273
|
include Wand::ActiveRelation_WhereNot
|
274
274
|
include Wand::CustomFinderMethods
|
275
275
|
include Wand::QueryMethodsReturningAssociationRelation
|
276
|
-
Elem = type_member
|
276
|
+
Elem = type_member {{fixed: Wand}}
|
277
277
|
|
278
278
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
279
279
|
def basilisk_horn(*args); end
|
@@ -291,7 +291,7 @@ end
|
|
291
291
|
class Wand::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
292
292
|
include Wand::CustomFinderMethods
|
293
293
|
include Wand::QueryMethodsReturningAssociationRelation
|
294
|
-
Elem = type_member
|
294
|
+
Elem = type_member {{fixed: Wand}}
|
295
295
|
|
296
296
|
sig { params(args: T.untyped).returns(Wand::ActiveRecord_AssociationRelation) }
|
297
297
|
def basilisk_horn(*args); end
|
@@ -302,20 +302,20 @@ class Wizard::HABTM_Subjects::ActiveRecord_Relation < ActiveRecord::Relation
|
|
302
302
|
include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
|
303
303
|
include Wizard::HABTM_Subjects::CustomFinderMethods
|
304
304
|
include Wizard::HABTM_Subjects::QueryMethodsReturningRelation
|
305
|
-
Elem = type_member
|
305
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
306
306
|
end
|
307
307
|
|
308
308
|
class Wizard::HABTM_Subjects::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
309
309
|
include Wizard::HABTM_Subjects::ActiveRelation_WhereNot
|
310
310
|
include Wizard::HABTM_Subjects::CustomFinderMethods
|
311
311
|
include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
|
312
|
-
Elem = type_member
|
312
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
313
313
|
end
|
314
314
|
|
315
315
|
class Wizard::HABTM_Subjects::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
316
316
|
include Wizard::HABTM_Subjects::CustomFinderMethods
|
317
317
|
include Wizard::HABTM_Subjects::QueryMethodsReturningAssociationRelation
|
318
|
-
Elem = type_member
|
318
|
+
Elem = type_member {{fixed: Wizard::HABTM_Subjects}}
|
319
319
|
|
320
320
|
sig { params(records: T.any(Wizard::HABTM_Subjects, T::Array[Wizard::HABTM_Subjects])).returns(T.self_type) }
|
321
321
|
def <<(*records); end
|
@@ -581,7 +581,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
581
581
|
include Wizard::ActiveRelation_WhereNot
|
582
582
|
include Wizard::CustomFinderMethods
|
583
583
|
include Wizard::QueryMethodsReturningRelation
|
584
|
-
Elem = type_member
|
584
|
+
Elem = type_member {{fixed: Wizard}}
|
585
585
|
|
586
586
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
587
587
|
def Gryffindor(*args); end
|
@@ -648,7 +648,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
648
648
|
include Wizard::ActiveRelation_WhereNot
|
649
649
|
include Wizard::CustomFinderMethods
|
650
650
|
include Wizard::QueryMethodsReturningAssociationRelation
|
651
|
-
Elem = type_member
|
651
|
+
Elem = type_member {{fixed: Wizard}}
|
652
652
|
|
653
653
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
654
654
|
def Gryffindor(*args); end
|
@@ -714,7 +714,7 @@ end
|
|
714
714
|
class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
715
715
|
include Wizard::CustomFinderMethods
|
716
716
|
include Wizard::QueryMethodsReturningAssociationRelation
|
717
|
-
Elem = type_member
|
717
|
+
Elem = type_member {{fixed: Wizard}}
|
718
718
|
|
719
719
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
720
720
|
def Gryffindor(*args); end
|
@@ -287,7 +287,7 @@ module Wizard::GeneratedAssociationMethods
|
|
287
287
|
sig { params(value: T::Enumerable[::ActiveStorage::Blob]).void }
|
288
288
|
def hats_blobs=(value); end
|
289
289
|
|
290
|
-
sig { returns(T.
|
290
|
+
sig { returns(T.untyped) }
|
291
291
|
def school; end
|
292
292
|
|
293
293
|
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
@@ -299,10 +299,10 @@ module Wizard::GeneratedAssociationMethods
|
|
299
299
|
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: T.untyped).void)).returns(T.untyped) }
|
300
300
|
def create_school!(*args, &block); end
|
301
301
|
|
302
|
-
sig { params(value: T.
|
302
|
+
sig { params(value: T.untyped).void }
|
303
303
|
def school=(value); end
|
304
304
|
|
305
|
-
sig { returns(T.
|
305
|
+
sig { returns(T.untyped) }
|
306
306
|
def reload_school; end
|
307
307
|
|
308
308
|
sig { returns(T.nilable(::ActiveStorage::Attachment)) }
|
@@ -575,7 +575,7 @@ class Wizard::ActiveRecord_Relation < ActiveRecord::Relation
|
|
575
575
|
include Wizard::ActiveRelation_WhereNot
|
576
576
|
include Wizard::CustomFinderMethods
|
577
577
|
include Wizard::QueryMethodsReturningRelation
|
578
|
-
Elem = type_member
|
578
|
+
Elem = type_member {{fixed: Wizard}}
|
579
579
|
|
580
580
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_Relation) }
|
581
581
|
def Gryffindor(*args); end
|
@@ -642,7 +642,7 @@ class Wizard::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelati
|
|
642
642
|
include Wizard::ActiveRelation_WhereNot
|
643
643
|
include Wizard::CustomFinderMethods
|
644
644
|
include Wizard::QueryMethodsReturningAssociationRelation
|
645
|
-
Elem = type_member
|
645
|
+
Elem = type_member {{fixed: Wizard}}
|
646
646
|
|
647
647
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
648
648
|
def Gryffindor(*args); end
|
@@ -708,7 +708,7 @@ end
|
|
708
708
|
class Wizard::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
709
709
|
include Wizard::CustomFinderMethods
|
710
710
|
include Wizard::QueryMethodsReturningAssociationRelation
|
711
|
-
Elem = type_member
|
711
|
+
Elem = type_member {{fixed: Wizard}}
|
712
712
|
|
713
713
|
sig { params(args: T.untyped).returns(Wizard::ActiveRecord_AssociationRelation) }
|
714
714
|
def Gryffindor(*args); end
|
@@ -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
|
@@ -305,20 +305,20 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
|
305
305
|
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
306
306
|
include ActiveStorage::Attachment::CustomFinderMethods
|
307
307
|
include ActiveStorage::Attachment::QueryMethodsReturningRelation
|
308
|
-
Elem = type_member
|
308
|
+
Elem = type_member {{fixed: ActiveStorage::Attachment}}
|
309
309
|
end
|
310
310
|
|
311
311
|
class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
312
312
|
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
313
313
|
include ActiveStorage::Attachment::CustomFinderMethods
|
314
314
|
include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
315
|
-
Elem = type_member
|
315
|
+
Elem = type_member {{fixed: ActiveStorage::Attachment}}
|
316
316
|
end
|
317
317
|
|
318
318
|
class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
319
319
|
include ActiveStorage::Attachment::CustomFinderMethods
|
320
320
|
include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
321
|
-
Elem = type_member
|
321
|
+
Elem = type_member {{fixed: ActiveStorage::Attachment}}
|
322
322
|
|
323
323
|
sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
|
324
324
|
def <<(*records); end
|
@@ -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
|
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
|
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
|
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
|