sorbet-rails 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/sorbet-rails/gem_plugins/active_flag_plugin.rb +0 -1
- data/lib/sorbet-rails/gem_plugins/paperclip_plugin.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_assoc.rb +9 -2
- data/lib/sorbet-rails/model_plugins/active_record_attribute.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_enum.rb +0 -1
- data/lib/sorbet-rails/model_plugins/active_record_named_scope.rb +15 -6
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +5 -1
- data/lib/sorbet-rails/model_plugins/base.rb +2 -1
- data/lib/sorbet-rails/model_rbi_formatter.rb +4 -8
- data/lib/sorbet-rails/model_utils.rb +68 -30
- data/lib/sorbet-rails/tasks/rails_rbi.rake +13 -21
- data/sorbet-rails.gemspec +1 -1
- data/spec/generators/rails-template.rb +3 -6
- data/spec/generators/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.0/Gemfile.lock +2 -2
- data/spec/support/v5.0/app/models/spell_book.rb +2 -0
- data/spec/support/v5.0/app/models/wizard.rb +1 -1
- data/spec/support/v5.0/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.1/Gemfile.lock +2 -2
- data/spec/support/v5.1/app/models/spell_book.rb +2 -0
- data/spec/support/v5.1/app/models/wizard.rb +1 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +41 -26
- data/spec/support/v5.2/Gemfile.lock +2 -2
- data/spec/support/v5.2/app/models/spell_book.rb +2 -0
- data/spec/support/v5.2/app/models/wizard.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +41 -26
- data/spec/support/v6.0/Gemfile.lock +2 -2
- data/spec/support/v6.0/app/models/spell_book.rb +2 -0
- data/spec/support/v6.0/app/models/wizard.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +41 -26
- data/spec/test_data/v5.0/expected_headmaster.rbi +18 -190
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +18 -188
- data/spec/test_data/v5.0/expected_potion.rbi +18 -188
- data/spec/test_data/v5.0/expected_robe.rbi +18 -190
- data/spec/test_data/v5.0/expected_schema_migration.rbi +18 -188
- data/spec/test_data/v5.0/expected_school.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +18 -190
- data/spec/test_data/v5.0/expected_spell_book.rbi +55 -217
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +18 -190
- data/spec/test_data/v5.0/expected_squib.rbi +90 -264
- data/spec/test_data/v5.0/expected_subject.rbi +18 -190
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +18 -190
- data/spec/test_data/v5.0/expected_wand.rbi +53 -227
- data/spec/test_data/v5.0/expected_wizard.rbi +90 -264
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +18 -190
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +90 -264
- data/spec/test_data/v5.1/expected_headmaster.rbi +18 -196
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +18 -194
- data/spec/test_data/v5.1/expected_potion.rbi +18 -194
- data/spec/test_data/v5.1/expected_robe.rbi +18 -196
- data/spec/test_data/v5.1/expected_schema_migration.rbi +18 -194
- data/spec/test_data/v5.1/expected_school.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell/habtm_spell_books.rbi +18 -196
- data/spec/test_data/v5.1/expected_spell_book.rbi +55 -223
- data/spec/test_data/v5.1/expected_spell_book/habtm_spells.rbi +18 -196
- data/spec/test_data/v5.1/expected_squib.rbi +91 -271
- data/spec/test_data/v5.1/expected_subject.rbi +18 -196
- data/spec/test_data/v5.1/expected_subject/habtm_wizards.rbi +18 -196
- data/spec/test_data/v5.1/expected_wand.rbi +53 -233
- data/spec/test_data/v5.1/expected_wizard.rbi +91 -271
- data/spec/test_data/v5.1/expected_wizard/habtm_subjects.rbi +18 -196
- data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +91 -271
- data/spec/test_data/v5.2/expected_attachment.rbi +18 -194
- data/spec/test_data/v5.2/expected_blob.rbi +39 -215
- data/spec/test_data/v5.2/expected_headmaster.rbi +18 -196
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +18 -194
- data/spec/test_data/v5.2/expected_potion.rbi +18 -194
- data/spec/test_data/v5.2/expected_robe.rbi +18 -196
- data/spec/test_data/v5.2/expected_schema_migration.rbi +18 -194
- data/spec/test_data/v5.2/expected_school.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +18 -196
- data/spec/test_data/v5.2/expected_spell_book.rbi +55 -223
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +18 -196
- data/spec/test_data/v5.2/expected_squib.rbi +95 -275
- data/spec/test_data/v5.2/expected_subject.rbi +18 -196
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +18 -196
- data/spec/test_data/v5.2/expected_wand.rbi +53 -233
- data/spec/test_data/v5.2/expected_wizard.rbi +95 -275
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +18 -196
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +95 -275
- data/spec/test_data/v6.0/expected_attachment.rbi +18 -218
- data/spec/test_data/v6.0/expected_blob.rbi +31 -243
- data/spec/test_data/v6.0/expected_headmaster.rbi +18 -220
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +18 -218
- data/spec/test_data/v6.0/expected_potion.rbi +18 -218
- data/spec/test_data/v6.0/expected_robe.rbi +18 -220
- data/spec/test_data/v6.0/expected_schema_migration.rbi +18 -218
- data/spec/test_data/v6.0/expected_school.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +18 -220
- data/spec/test_data/v6.0/expected_spell_book.rbi +24 -258
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +18 -220
- data/spec/test_data/v6.0/expected_squib.rbi +31 -457
- data/spec/test_data/v6.0/expected_subject.rbi +18 -220
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +18 -220
- data/spec/test_data/v6.0/expected_wand.rbi +18 -270
- data/spec/test_data/v6.0/expected_wizard.rbi +31 -457
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +18 -220
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +31 -457
- metadata +1 -1
@@ -8,8 +8,6 @@ module ActiveStorage::Attachment::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ActiveStorage::Attachment::GeneratedAssociationMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(::ActiveStorage::Blob) }
|
14
12
|
def blob; end
|
15
13
|
|
@@ -43,105 +41,11 @@ end
|
|
43
41
|
class ActiveStorage::Attachment < ActiveRecord::Base
|
44
42
|
include ActiveStorage::Attachment::GeneratedAssociationMethods
|
45
43
|
extend ActiveStorage::Attachment::CustomFinderMethods
|
46
|
-
extend
|
47
|
-
extend T::Generic
|
44
|
+
extend ActiveStorage::Attachment::QueryMethodsReturningRelation
|
48
45
|
RelationType = T.type_alias { T.any(ActiveStorage::Attachment::ActiveRecord_Relation, ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy, ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
49
|
-
|
50
|
-
sig { returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
51
|
-
def self.all; end
|
52
|
-
|
53
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
54
|
-
def self.unscoped(&block); end
|
55
|
-
|
56
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
57
|
-
def self.select(*args); end
|
58
|
-
|
59
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
60
|
-
def self.order(*args); end
|
61
|
-
|
62
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
63
|
-
def self.reorder(*args); end
|
64
|
-
|
65
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
66
|
-
def self.group(*args); end
|
67
|
-
|
68
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
69
|
-
def self.limit(*args); end
|
70
|
-
|
71
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
72
|
-
def self.offset(*args); end
|
73
|
-
|
74
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
75
|
-
def self.joins(*args); end
|
76
|
-
|
77
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
78
|
-
def self.left_joins(*args); end
|
79
|
-
|
80
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
81
|
-
def self.left_outer_joins(*args); end
|
82
|
-
|
83
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
84
|
-
def self.where(*args); end
|
85
|
-
|
86
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
87
|
-
def self.rewhere(*args); end
|
88
|
-
|
89
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
90
|
-
def self.preload(*args); end
|
91
|
-
|
92
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
93
|
-
def self.eager_load(*args); end
|
94
|
-
|
95
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
96
|
-
def self.includes(*args); end
|
97
|
-
|
98
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
99
|
-
def self.from(*args); end
|
100
|
-
|
101
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
102
|
-
def self.lock(*args); end
|
103
|
-
|
104
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
105
|
-
def self.readonly(*args); end
|
106
|
-
|
107
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
108
|
-
def self.or(*args); end
|
109
|
-
|
110
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
111
|
-
def self.having(*args); end
|
112
|
-
|
113
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
114
|
-
def self.create_with(*args); end
|
115
|
-
|
116
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
117
|
-
def self.distinct(*args); end
|
118
|
-
|
119
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
120
|
-
def self.references(*args); end
|
121
|
-
|
122
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
123
|
-
def self.none(*args); end
|
124
|
-
|
125
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
126
|
-
def self.unscope(*args); end
|
127
|
-
|
128
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
129
|
-
def self.merge(*args); end
|
130
|
-
|
131
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
132
|
-
def self.except(*args); end
|
133
|
-
|
134
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
135
|
-
def self.extending(*args, &block); end
|
136
46
|
end
|
137
47
|
|
138
|
-
|
139
|
-
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
140
|
-
include ActiveStorage::Attachment::CustomFinderMethods
|
141
|
-
extend T::Sig
|
142
|
-
extend T::Generic
|
143
|
-
Elem = type_member(fixed: ActiveStorage::Attachment)
|
144
|
-
|
48
|
+
module ActiveStorage::Attachment::QueryMethodsReturningRelation
|
145
49
|
sig { returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
146
50
|
def all; end
|
147
51
|
|
@@ -230,17 +134,11 @@ class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
|
230
134
|
def extending(*args, &block); end
|
231
135
|
end
|
232
136
|
|
233
|
-
|
234
|
-
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
235
|
-
include ActiveStorage::Attachment::CustomFinderMethods
|
236
|
-
extend T::Sig
|
237
|
-
extend T::Generic
|
238
|
-
Elem = type_member(fixed: ActiveStorage::Attachment)
|
239
|
-
|
137
|
+
module ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
240
138
|
sig { returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
241
139
|
def all; end
|
242
140
|
|
243
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::
|
141
|
+
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Attachment::ActiveRecord_Relation) }
|
244
142
|
def unscoped(&block); end
|
245
143
|
|
246
144
|
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
@@ -325,98 +223,24 @@ class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord
|
|
325
223
|
def extending(*args, &block); end
|
326
224
|
end
|
327
225
|
|
328
|
-
class ActiveStorage::Attachment::
|
226
|
+
class ActiveStorage::Attachment::ActiveRecord_Relation < ActiveRecord::Relation
|
227
|
+
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
329
228
|
include ActiveStorage::Attachment::CustomFinderMethods
|
330
|
-
|
331
|
-
extend T::Generic
|
229
|
+
include ActiveStorage::Attachment::QueryMethodsReturningRelation
|
332
230
|
Elem = type_member(fixed: ActiveStorage::Attachment)
|
231
|
+
end
|
333
232
|
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
341
|
-
def select(*args); end
|
342
|
-
|
343
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
344
|
-
def order(*args); end
|
345
|
-
|
346
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
347
|
-
def reorder(*args); end
|
348
|
-
|
349
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
350
|
-
def group(*args); end
|
351
|
-
|
352
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
353
|
-
def limit(*args); end
|
354
|
-
|
355
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
356
|
-
def offset(*args); end
|
357
|
-
|
358
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
359
|
-
def joins(*args); end
|
360
|
-
|
361
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
362
|
-
def left_joins(*args); end
|
363
|
-
|
364
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
365
|
-
def left_outer_joins(*args); end
|
366
|
-
|
367
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
368
|
-
def where(*args); end
|
369
|
-
|
370
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
371
|
-
def rewhere(*args); end
|
372
|
-
|
373
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
374
|
-
def preload(*args); end
|
375
|
-
|
376
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
377
|
-
def eager_load(*args); end
|
378
|
-
|
379
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
380
|
-
def includes(*args); end
|
381
|
-
|
382
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
383
|
-
def from(*args); end
|
384
|
-
|
385
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
386
|
-
def lock(*args); end
|
387
|
-
|
388
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
389
|
-
def readonly(*args); end
|
390
|
-
|
391
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
392
|
-
def or(*args); end
|
393
|
-
|
394
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
395
|
-
def having(*args); end
|
396
|
-
|
397
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
398
|
-
def create_with(*args); end
|
399
|
-
|
400
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
401
|
-
def distinct(*args); end
|
402
|
-
|
403
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
404
|
-
def references(*args); end
|
405
|
-
|
406
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
407
|
-
def none(*args); end
|
408
|
-
|
409
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
410
|
-
def unscope(*args); end
|
411
|
-
|
412
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
413
|
-
def merge(*args); end
|
414
|
-
|
415
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Attachment::ActiveRecord_AssociationRelation) }
|
416
|
-
def except(*args); end
|
233
|
+
class ActiveStorage::Attachment::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
234
|
+
include ActiveStorage::Attachment::ActiveRelation_WhereNot
|
235
|
+
include ActiveStorage::Attachment::CustomFinderMethods
|
236
|
+
include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
237
|
+
Elem = type_member(fixed: ActiveStorage::Attachment)
|
238
|
+
end
|
417
239
|
|
418
|
-
|
419
|
-
|
240
|
+
class ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
241
|
+
include ActiveStorage::Attachment::CustomFinderMethods
|
242
|
+
include ActiveStorage::Attachment::QueryMethodsReturningAssociationRelation
|
243
|
+
Elem = type_member(fixed: ActiveStorage::Attachment)
|
420
244
|
|
421
245
|
sig { params(records: T.any(ActiveStorage::Attachment, T::Array[ActiveStorage::Attachment])).returns(T.self_type) }
|
422
246
|
def <<(*records); end
|
@@ -8,8 +8,6 @@ module ActiveStorage::Blob::ActiveRelation_WhereNot
|
|
8
8
|
end
|
9
9
|
|
10
10
|
module ActiveStorage::Blob::GeneratedAssociationMethods
|
11
|
-
extend T::Sig
|
12
|
-
|
13
11
|
sig { returns(::ActiveStorage::Attachment::ActiveRecord_Associations_CollectionProxy) }
|
14
12
|
def attachments; end
|
15
13
|
|
@@ -52,8 +50,7 @@ end
|
|
52
50
|
class ActiveStorage::Blob < ActiveRecord::Base
|
53
51
|
include ActiveStorage::Blob::GeneratedAssociationMethods
|
54
52
|
extend ActiveStorage::Blob::CustomFinderMethods
|
55
|
-
extend
|
56
|
-
extend T::Generic
|
53
|
+
extend ActiveStorage::Blob::QueryMethodsReturningRelation
|
57
54
|
RelationType = T.type_alias { T.any(ActiveStorage::Blob::ActiveRecord_Relation, ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy, ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
58
55
|
|
59
56
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
@@ -61,108 +58,59 @@ class ActiveStorage::Blob < ActiveRecord::Base
|
|
61
58
|
|
62
59
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
63
60
|
def self.with_attached_preview_image(*args); end
|
61
|
+
end
|
64
62
|
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
72
|
-
def self.select(*args); end
|
73
|
-
|
74
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
75
|
-
def self.order(*args); end
|
76
|
-
|
77
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
78
|
-
def self.reorder(*args); end
|
79
|
-
|
80
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
81
|
-
def self.group(*args); end
|
82
|
-
|
83
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
84
|
-
def self.limit(*args); end
|
85
|
-
|
86
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
87
|
-
def self.offset(*args); end
|
88
|
-
|
89
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
90
|
-
def self.joins(*args); end
|
91
|
-
|
92
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
93
|
-
def self.left_joins(*args); end
|
94
|
-
|
95
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
96
|
-
def self.left_outer_joins(*args); end
|
97
|
-
|
98
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
99
|
-
def self.where(*args); end
|
100
|
-
|
101
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
102
|
-
def self.rewhere(*args); end
|
103
|
-
|
104
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
105
|
-
def self.preload(*args); end
|
106
|
-
|
107
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
108
|
-
def self.eager_load(*args); end
|
109
|
-
|
110
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
111
|
-
def self.includes(*args); end
|
112
|
-
|
113
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
114
|
-
def self.from(*args); end
|
115
|
-
|
116
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
117
|
-
def self.lock(*args); end
|
118
|
-
|
119
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
120
|
-
def self.readonly(*args); end
|
121
|
-
|
122
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
123
|
-
def self.or(*args); end
|
124
|
-
|
125
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
126
|
-
def self.having(*args); end
|
127
|
-
|
128
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
129
|
-
def self.create_with(*args); end
|
130
|
-
|
131
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
132
|
-
def self.distinct(*args); end
|
133
|
-
|
134
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
135
|
-
def self.references(*args); end
|
63
|
+
class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
64
|
+
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
65
|
+
include ActiveStorage::Blob::CustomFinderMethods
|
66
|
+
include ActiveStorage::Blob::QueryMethodsReturningRelation
|
67
|
+
Elem = type_member(fixed: ActiveStorage::Blob)
|
136
68
|
|
137
69
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
138
|
-
def
|
70
|
+
def unattached(*args); end
|
139
71
|
|
140
72
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
141
|
-
def
|
73
|
+
def with_attached_preview_image(*args); end
|
74
|
+
end
|
142
75
|
|
143
|
-
|
144
|
-
|
76
|
+
class ActiveStorage::Blob::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
77
|
+
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
78
|
+
include ActiveStorage::Blob::CustomFinderMethods
|
79
|
+
include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
80
|
+
Elem = type_member(fixed: ActiveStorage::Blob)
|
145
81
|
|
146
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::
|
147
|
-
def
|
82
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
83
|
+
def unattached(*args); end
|
148
84
|
|
149
|
-
sig { params(args: T.untyped
|
150
|
-
def
|
85
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
86
|
+
def with_attached_preview_image(*args); end
|
151
87
|
end
|
152
88
|
|
153
|
-
class ActiveStorage::Blob::
|
154
|
-
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
89
|
+
class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
155
90
|
include ActiveStorage::Blob::CustomFinderMethods
|
156
|
-
|
157
|
-
extend T::Generic
|
91
|
+
include ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
158
92
|
Elem = type_member(fixed: ActiveStorage::Blob)
|
159
93
|
|
160
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::
|
94
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
161
95
|
def unattached(*args); end
|
162
96
|
|
163
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::
|
97
|
+
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
164
98
|
def with_attached_preview_image(*args); end
|
165
99
|
|
100
|
+
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
101
|
+
def <<(*records); end
|
102
|
+
|
103
|
+
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
104
|
+
def append(*records); end
|
105
|
+
|
106
|
+
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
107
|
+
def push(*records); end
|
108
|
+
|
109
|
+
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
110
|
+
def concat(*records); end
|
111
|
+
end
|
112
|
+
|
113
|
+
module ActiveStorage::Blob::QueryMethodsReturningRelation
|
166
114
|
sig { returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
167
115
|
def all; end
|
168
116
|
|
@@ -251,123 +199,11 @@ class ActiveStorage::Blob::ActiveRecord_Relation < ActiveRecord::Relation
|
|
251
199
|
def extending(*args, &block); end
|
252
200
|
end
|
253
201
|
|
254
|
-
|
255
|
-
include ActiveStorage::Blob::ActiveRelation_WhereNot
|
256
|
-
include ActiveStorage::Blob::CustomFinderMethods
|
257
|
-
extend T::Sig
|
258
|
-
extend T::Generic
|
259
|
-
Elem = type_member(fixed: ActiveStorage::Blob)
|
260
|
-
|
261
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
262
|
-
def unattached(*args); end
|
263
|
-
|
264
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
265
|
-
def with_attached_preview_image(*args); end
|
266
|
-
|
267
|
-
sig { returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
268
|
-
def all; end
|
269
|
-
|
270
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
271
|
-
def unscoped(&block); end
|
272
|
-
|
273
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
274
|
-
def select(*args); end
|
275
|
-
|
276
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
277
|
-
def order(*args); end
|
278
|
-
|
279
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
280
|
-
def reorder(*args); end
|
281
|
-
|
282
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
283
|
-
def group(*args); end
|
284
|
-
|
285
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
286
|
-
def limit(*args); end
|
287
|
-
|
288
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
289
|
-
def offset(*args); end
|
290
|
-
|
291
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
292
|
-
def joins(*args); end
|
293
|
-
|
294
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
295
|
-
def left_joins(*args); end
|
296
|
-
|
297
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
298
|
-
def left_outer_joins(*args); end
|
299
|
-
|
300
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
301
|
-
def where(*args); end
|
302
|
-
|
303
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
304
|
-
def rewhere(*args); end
|
305
|
-
|
306
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
307
|
-
def preload(*args); end
|
308
|
-
|
309
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
310
|
-
def eager_load(*args); end
|
311
|
-
|
312
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
313
|
-
def includes(*args); end
|
314
|
-
|
315
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
316
|
-
def from(*args); end
|
317
|
-
|
318
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
319
|
-
def lock(*args); end
|
320
|
-
|
321
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
322
|
-
def readonly(*args); end
|
323
|
-
|
324
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
325
|
-
def or(*args); end
|
326
|
-
|
327
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
328
|
-
def having(*args); end
|
329
|
-
|
330
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
331
|
-
def create_with(*args); end
|
332
|
-
|
333
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
334
|
-
def distinct(*args); end
|
335
|
-
|
336
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
337
|
-
def references(*args); end
|
338
|
-
|
339
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
340
|
-
def none(*args); end
|
341
|
-
|
342
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
343
|
-
def unscope(*args); end
|
344
|
-
|
345
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
346
|
-
def merge(*args); end
|
347
|
-
|
348
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
349
|
-
def except(*args); end
|
350
|
-
|
351
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
352
|
-
def extending(*args, &block); end
|
353
|
-
end
|
354
|
-
|
355
|
-
class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
356
|
-
include ActiveStorage::Blob::CustomFinderMethods
|
357
|
-
extend T::Sig
|
358
|
-
extend T::Generic
|
359
|
-
Elem = type_member(fixed: ActiveStorage::Blob)
|
360
|
-
|
361
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
362
|
-
def unattached(*args); end
|
363
|
-
|
364
|
-
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
365
|
-
def with_attached_preview_image(*args); end
|
366
|
-
|
202
|
+
module ActiveStorage::Blob::QueryMethodsReturningAssociationRelation
|
367
203
|
sig { returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
368
204
|
def all; end
|
369
205
|
|
370
|
-
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::
|
206
|
+
sig { params(block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_Relation) }
|
371
207
|
def unscoped(&block); end
|
372
208
|
|
373
209
|
sig { params(args: T.untyped).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
@@ -450,16 +286,4 @@ class ActiveStorage::Blob::ActiveRecord_Associations_CollectionProxy < ActiveRec
|
|
450
286
|
|
451
287
|
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(ActiveStorage::Blob::ActiveRecord_AssociationRelation) }
|
452
288
|
def extending(*args, &block); end
|
453
|
-
|
454
|
-
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
455
|
-
def <<(*records); end
|
456
|
-
|
457
|
-
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
458
|
-
def append(*records); end
|
459
|
-
|
460
|
-
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
461
|
-
def push(*records); end
|
462
|
-
|
463
|
-
sig { params(records: T.any(ActiveStorage::Blob, T::Array[ActiveStorage::Blob])).returns(T.self_type) }
|
464
|
-
def concat(*records); end
|
465
289
|
end
|